Network.Location
val validate_public : t -> unit
Raises an exception if t
is not a valid public address (e.g. the Unix path is relative)
val pp : t Fmt.t
val unix : string -> t
unix path
is a Unix-domain socket address. path
is made absolute if it isn't already.
val tcp : host:string -> port:int -> t
tcp ~host port
is `TCP (host, port)
.
val of_string : string -> (t, [> `Msg of string ]) Stdlib.result
val cmdliner_conv : t Cmdliner.Arg.conv