class initiator : ?sock:t -> ?src:address -> address -> object .. end
Use new initiator ?sock ?src addr to construct an object derived from
Cf_sock_common.T.basic that sports a method for connecting to a
remote peer endpoint at the address addr. If the ?sock argument is
provided then the socket is treated as an unbound socket and used for
the connection. Otherwise, a new socket is created. If the ?src
argument is provided, then the socket is bound to the specific address.
Otherwise, the socket is bound to the unspecified address for the
protocol/address family. Raises Unix.Error if an error occurs.
Inherits
method virtual getsockname : address
Use obj#getsockname to obtain the actual local address
associated with the socket. Raises Unix.Error if there is an
error.
method connect : unit
Use obj#connect to initiate the connection to the remote
address provided to the constructor.