package b0
Module Os.SocketSource
Socket operations.
Source
val of_endpoint :
Endpoint.t ->
Unix.socket_type ->
(Unix.sockaddr option * Unix.file_descr * bool, string) resultsocket_of_endpoint e st is Ok (addr, fd, close) with:
addr, the address for the socket, if any.fd, the file descriptor for the socket. Ifcis`Fd fdthis isfduntouched. Otherwisefdis a new file descriptor set to non-blocking mode and has close on exec set totrue.closeistrueif the caller is in charge of closing it. This isfalseiffcis`Fd _.
pp_sockaddr formats a socket address.