Expand description
Socket interface functions
Modules§
- sockopt
 - Socket options as used by 
setsockoptandgetsockopt. 
Structs§
- AlgAddr
 - Socket address for the Linux kernel crypto API
 - Backlog
 - Cmsg
Iterator  - IoSlice
Iterator  - IpMembership
Request  - Request for multicast socket operations
 - Ipv6
Membership Request  - Request for ipv6 multicast socket operations
 - Link
Addr  - Hardware Address
 - MsgFlags
 - Flags for send/recv and their relatives
 - Multi
Headers  - Preallocated structures needed for 
recvmmsgandsendmmsgfunctions - Multi
Results  - Iterator over results of 
recvmmsg/sendmmsg - Netlink
Addr  - Address for the Linux kernel user interface device.
 - RecvMsg
 - Contains outcome of sending or receiving a message
 - Sock
Flag  - Additional socket options
 - Sockaddr
In  - An IPv4 socket address
 - Sockaddr
In6  - An IPv6 socket address
 - Timestamping
Flag  - Configuration flags for 
SO_TIMESTAMPINGinterface - Timestamps
 - For representing packet timestamps via 
SO_TIMESTAMPINGinterface - Unix
Addr  - A wrapper around 
sockaddr_un. - Unix
Credentials  - Unix credentials of the sending process.
 - Vsock
Addr  - Socket address for VMWare VSockets protocol
 - cmsghdr
 - msghdr
 - sockaddr
 - sockaddr_
in  - sockaddr_
in6  - sockaddr_
storage  - sockaddr_
un  
Enums§
- Address
Family  - These constants specify the protocol family to be used
in 
socketandsocketpair - Control
Message  - A type-safe zero-copy wrapper around a single control message, as used with
sendmsg. More types may be added to this enum; do not exhaustively pattern-match it. - Control
Message Owned  - A type-safe wrapper around a single control message, as used with
recvmsg. - Shutdown
 - Sock
Protocol  - Constants used in 
socketandsocketpairto specify the protocol to use. - Sock
Type  - These constants are used to specify the communication semantics
when creating a socket with 
socket() - TlsGet
Record Type  - These constants correspond to TLS 1.2 message types, as defined in RFC 5246, Appendix A.1
 
Traits§
- GetSock
Opt  - Represents a socket option that can be retrieved.
 - SetSock
Opt  - Represents a socket option that can be set.
 - Sockaddr
Like  - Anything that, in C, can be cast back and forth to 
sockaddr. 
Functions§
- accept
 - Accept a connection on a socket
 - accept4
 - Accept a connection on a socket
 - bind
 - Bind a name to a socket
 - connect
 - Initiate a connection on a socket
 - getpeername
 - Get the address of the peer connected to the socket 
fd. - getsockname
 - Get the current address to which the socket 
fdis bound. - getsockopt
 - Get the current value for the requested socket option
 - listen
 - Listen for connections on a socket
 - recv
 - Receive data from a connection-oriented socket. Returns the number of bytes read
 - recvfrom
 - Receive data from a connectionless or connection-oriented socket. Returns the number of bytes read and, for connectionless sockets, the socket address of the sender.
 - recvmmsg
 - An extension of recvmsg that allows the caller to receive multiple messages from a socket using a single system call.
 - recvmsg
 - Receive message in scatter-gather vectors from a socket, and optionally receive ancillary data into the provided buffer. If no ancillary data is desired, use () as the type parameter.
 - send
 - Send data to a connection-oriented socket. Returns the number of bytes read
 - sendmmsg
 - An extension of 
sendmsgthat allows the caller to transmit multiple messages on a socket using a single system call. This has performance benefits for some applications. - sendmsg
 - Send data in scatter-gather vectors to a socket, possibly accompanied by ancillary data. Optionally direct the message at the given address, as with sendto.
 - sendto
 - Send a message to a socket
 - setsockopt
 - Sets the value for the requested socket option
 - shutdown
 - Shut down part of a full-duplex connection.
 - socket
 - Create an endpoint for communication
 - socketpair
 - Create a pair of connected sockets
 
Type Aliases§
Unions§
- Sockaddr
Storage  - A container for any sockaddr type