Functions§
- Accept a new tcp-connection and set flags on the new connection’s
Fd
Accepted flags are 0,SOCK_NONBLOCK
anSOCK_CLOEXEC
See Linux documentation for more details - Accept a new unix-connection and set flags on the new connection’s
Fd
Accepted flags are 0,SOCK_NONBLOCK
anSOCK_CLOEXEC
See Linux documentation for more details - Bind the tcp-socket with the fd
sock_fd
to the addresssocket_address
See the Linux documentation for details Similar toconnect
but on the ‘server’-side - Bind the unix-socket with the fd
sock_fd
to the addresssocket_address
See the Linux documentation for details Similar toconnect
but on the ‘server’-side - Connect the tcp-socket with the fd
sock_fd
to the addresssocket_address
See the Linux documentation for details Similar tobind
but on the ‘client’-side - Connect the unix-socket with the fd
sock_fd
to the addresssocket_address
See the Linux documentation for details Similar tobind
but on the ‘client’-side - Get the socket name of the provided Inet socket
Fd
. See Linux docs for details - Get the socket name of the provided Unix socket
Fd
. See Linux docs for details - Marks a socket as passive and allows it to accept incoming connection requests See Linux documentation for more details
- Read a message from a socket,
crate::unistd::read
should be prefered if not expecting to receive fds. See linux docs for details - Send a message on a socket,
crate::unistd::write
should be prefered if not sending fds. See linux docs for details