Structs§
- File
Desc - Any file descriptor on unix, only sockets on Windows.
Constants§
- AF_INET
- AF_
INET6 - IFF_
BROADCAST - IFF_
LOOPBACK - IFF_
MULTICAST - IFF_
POINTOPOINT - IFF_
RUNNING - IFF_UP
- INVALID_
SOCKET - IPPROTO_
IP - IPPROTO_
IPV6 - IPV6_
TCLASS - IPV6_
UNICAST_ HOPS - IP_
HDRINCL - IP_TOS
- IP_TTL
- SOCK_
RAW - SOL_
SOCKET - SO_
RCVTIMEO - SO_
SNDTIMEO
Functions§
- addr_
to_ sockaddr - close⚠
- duration_
to_ timespec - Convert a Duration into a platform specific
timespec
. - duration_
to_ timeval - Convert a Duration into a platform specific
timeval
. - get_
socket_ receive_ timeout - Extracts and returns a timeout for reading from the socket.
- getsockopt⚠
- recv_
from - send_to
- set_
socket_ receive_ timeout - Set a timeout for receiving from the socket.
- setsockopt⚠
- sockaddr_
to_ addr - socket⚠
- timespec_
to_ duration - Convert a platform specific
timespec
into a Duration. - timeval_
to_ duration - Convert a platform specific
timeval
into a Duration.