1. Brandon Mitchell
  2. ocaml-core

Source

ocaml-core / base / async / extra / lib / tcp.mli

Diff from to

File base/async/extra/lib/tcp.mli

  • Ignore whitespace
 val connect_sock
   : host:string -> port:int -> ([ `Active ], Socket.inet) Socket.t Deferred.t
 
+val connect_sock_unix
+  : 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
   -> unit
   -> (Reader.t * Writer.t) Deferred.t
 
+val connect_unix
+  :  ?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