Module Commons.Mk

Helper functions for building data structures.

val ip : Ipaddr.t -> ip
val port_exn : int -> port
val port : int -> port rresult
val portf : float -> port rresult
val ports : string -> port rresult
val ip_port : ip -> port -> ip_port
val ip_port' : ip -> int -> ip_port
val ip_port_raw : Ipaddr.t -> int -> ip_port
val ip_port_raw' : Ipaddr.t -> port -> ip_port
val privkey : privkey_25519 -> privkey
val pubkey : pubkey_25519 -> pubkey
val multicast_group_pubkey : pubkey -> multicast_group_pubkey
val multicast_group_ro : pubkey -> multicast_group_ro
val multicast_group_rw : (privkey * pubkey) -> multicast_group_rw
val multicast_subscriber : pubkey -> multicast_subscriber
val remote_router : pubkey -> ip -> port -> string -> remote_router