Up

Module Dynamic_port_writer = Dynamic_port_writer

Signature

type t
val t_of_sexp : Sexplib.Sexp.t -> t
val sexp_of_t : t -> Sexplib.Sexp.t
val __bin_read_t__ : (int -> t) Core.Std.Bin_prot.Read.reader
include Core.Std.Stringable with type t := t
type t
val of_string : string -> t
val to_string : t -> string
val create : unit -> (t * [
| `Port of int
] Core.Std.Or_error.t Import.Deferred.t) Import.Deferred.t
val where_to_listen : t -> (Import.Socket.Address.Inet.t, int) Tcp.Where_to_listen.t

For use with Command.

One can pass a t from parent to child by including flag_args t in the command-line arguments and using flag in the Command.t in the child.

val flag_args : t -> string list