Crate pnet_sys

Source

Structs§

FileDesc
Any file descriptor on unix, only sockets on Windows.

Constants§

AF_INET
AF_INET6
IFF_BROADCAST
IFF_DORMANT
IFF_LOOPBACK
IFF_LOWER_UP
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.

Type Aliases§

Buf
BufLen
CSocket
CouldFail
In6Addr
InAddr
InAddrType
MutBuf
MutSockLen
SockAddr
SockAddrFamily
SockAddrFamily6
SockAddrIn
SockAddrIn6
SockAddrStorage
SockLen
TvUsecType