module Tcp:sig
..end
type 'a
where_to_connect
val to_host_and_port : string -> int -> Socket.Address.t where_to_connect
val connect : 'a where_to_connect ->
('a Socket.t * Reader.t * Writer.t)
Deferred.t
Reader.t
and a
Writer.t
that can be used to communicate with the remote endpoint.
Raises an exception if it cannot connect to the worker
Socket.shutdown `Both
on the
Socket