Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Net.Sockettype 'kind socket = Fd.ttype listen_socket = [ `listen ] sockettype stream_socket = [ `stream ] socketval listen :
?opts:listen_opts ->
port:int ->
unit ->
(listen_socket, [> `System_limit ]) IO.resultval connect : Addr.stream_addr -> (stream_socket, [> `Closed ]) IO.resultval accept :
?timeout:timeout ->
listen_socket ->
(stream_socket * Addr.stream_addr, [> `Closed | `Timeout | `System_limit ])
IO.resultval close : _ socket -> unitval receive :
?timeout:timeout ->
buf:IO.Buffer.t ->
stream_socket ->
(int, [> `Closed | `Timeout ]) IO.resultval send : data:IO.Buffer.t -> stream_socket -> (int, [> `Closed ]) IO.resultval pp : Format.formatter -> _ socket -> unitval pp_err :
Format.formatter ->
[ IO.unix_error | `Closed | `Timeout | `System_limit ] ->
unitval to_reader : stream_socket -> stream_socket IO.Reader.tval to_writer : stream_socket -> stream_socket IO.Writer.t