Need help cloning? Learn how to
clone a repository.
is a free Git and Mercurial client for Windows.
is a free Git and Mercurial client for Mac.
: host:string -> port:int -> ([ `Active ], Socket.inet) Socket.t Deferred.t
+ : file:string -> ([ `Active ], Socket.unix) Socket.t Deferred.t
(** [connect ~host ~port] is a convenience wrapper around [connect_sock] that returns a
reader and writer on the socket. The reader and writer share a file descriptor, and
so closing one will affect the other. In particular, closing the reader before
-> (Reader.t * Writer.t) Deferred.t
+ : ?max_buffer_age:Time.Span.t
+ -> ?interrupt:unit Deferred.t
+ -> ?reader_buffer_size:int
+ -> file:string
+ -> unit
+ -> (Reader.t * Writer.t) Deferred.t
(** [serve ~port handler] starts a server on the specified port. The return
value becomes determined once the socket is ready to accept connections.
[serve] calls [handler (address, reader, writer)] for each client that