module Create:
The functor used to create the socket module.
include Cf_sock_common.T
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
.
class listener : ?sock:t -> address ->
object
.. end
Use
new listener ?sock addr
to construct an object derived from
Cf_sock_common.T.basic
that sports methods for passive listening
for incoming connections at the local address
addr
.
class endpoint : t ->
object
.. end
Use
new endpoint sock
to construct an object derived from
Cf_sock_common.T.basic
that sports methods for sending data to and
receiving data from an already connected socket
sock
.