A Where_to_connect describes the socket that a tcp client should connect to.
include sig ... endval sexp_of_t : ('a ‑> Base.Sexp.t) ‑> 'a t ‑> Base.Sexp.tinclude sig ... endval sexp_of_inet : inet ‑> Base.Sexp.tinclude sig ... endval sexp_of_unix : unix ‑> Base.Sexp.tval remote_address : 'a t ‑> 'a Async_extra__.Import.Deferred.tval of_host_and_port : ?bind_to_address:Async_extra__.Import.Unix.Inet_addr.t ‑> ?bind_to_port:int ‑> Core.Host_and_port.t ‑> inetbind_to_address and bind_to_port can be used to bind the source IP and port of
the underlying socket. This does not necessarily alter the interface used to send
the data. In particular, the commonly used destination-based routing is unaffected
by binding to a different address.
val of_inet_address : ?bind_to_address:Async_extra__.Import.Unix.Inet_addr.t ‑> ?bind_to_port:int ‑> Async_extra__.Import.Socket.Address.Inet.t ‑> inetval of_file : string ‑> unixval of_unix_address : Async_extra__.Import.Socket.Address.Unix.t ‑> unix