Macrosยง
- syscall ๐
- Helper macro to execute a system call that returns an
io::Result
.
Structsยง
- Ccid
Endpoints - See [
Socket::dccp_available_ccids
]. - IpMreq ๐
- IpMreq
Source ๐ - Ipv6
Mreq ๐ - Maybe
Uninit Slice - linger ๐
- msghdr ๐
- sockaddr ๐
- sockaddr_
in ๐ - sockaddr_
in6 ๐ - sockaddr_
storage ๐
Constantsยง
- AF_INET ๐
- AF_
INET6 ๐ - AF_UNIX ๐
- IPPROTO_
DCCP ๐ - DCCP
- IPPROTO_
ICMP ๐ - IPPROTO_
ICMP ๐V6 - IPPROTO_
IP ๐ - IPPROTO_
IPV6 ๐ - IPPROTO_
MPTCP ๐ - Multipath TCP
- IPPROTO_
SCTP ๐ - SCTP
- IPPROTO_
TCP ๐ - IPPROTO_
UDP ๐ - IPPROTO_
UDPLITE ๐ - IPV6_
ADD_ ๐MEMBERSHIP - IPV6_
DROP_ ๐MEMBERSHIP - IPV6_
MULTICAST_ ๐HOPS - IPV6_
MULTICAST_ ๐IF - IPV6_
MULTICAST_ ๐LOOP - IPV6_
RECVHOPLIMIT ๐ - IPV6_
RECVTCLASS ๐ - IPV6_
UNICAST_ ๐HOPS - IPV6_
V6ONLY ๐ - IP_
ADD_ ๐MEMBERSHIP - IP_
ADD_ ๐SOURCE_ MEMBERSHIP - IP_
DROP_ ๐MEMBERSHIP - IP_
DROP_ ๐SOURCE_ MEMBERSHIP - IP_
HDRINCL ๐ - IP_
MULTICAST_ ๐IF - IP_
MULTICAST_ ๐LOOP - IP_
MULTICAST_ ๐TTL - IP_
RECVTOS ๐ - IP_TOS ๐
- IP_TTL ๐
- MAX_
BUF_ ๐LEN - Maximum size of a buffer passed to system call like
recv
andsend
. - MSG_OOB ๐
- MSG_
PEEK ๐ - MSG_
TRUNC ๐ - SOCK_
DCCP ๐ - SOCK_
DGRAM ๐ - SOCK_
RAW ๐ - SOCK_
SEQPACKET ๐ - SOCK_
STREAM ๐ - SOL_
SOCKET ๐ - SO_
BROADCAST ๐ - SO_
ERROR ๐ - SO_
KEEPALIVE ๐ - SO_
LINGER ๐ - SO_
OOBINLINE ๐ - SO_
PASSCRED ๐ - SO_
RCVBUF ๐ - SO_
RCVTIMEO ๐ - SO_
REUSEADDR ๐ - SO_
SNDBUF ๐ - SO_
SNDTIMEO ๐ - SO_TYPE ๐
- TCP_
CA_ ๐NAME_ MAX - TCP_
KEEPCNT ๐ - TCP_
KEEPINTVL ๐ - TCP_
NODELAY ๐
Functionsยง
- accept ๐
- bind ๐
- connect ๐
- fcntl_
add ๐ - Add
flag
to the current set flags ofF_GETFD
. - fcntl_
get ๐ - Get the flags using
cmd
. - fcntl_
remove ๐ - Remove
flag
to the current set flags ofF_GETFD
. - from_
in6_ ๐addr - from_
in_ ๐addr - from_
timeval ๐ - getpeername ๐
- getsockname ๐
- getsockopt ๐ โ
- Caller must ensure
T
is the correct type foropt
andval
. - into_
secs ๐ - into_
timeval ๐ - keepalive_
time ๐ - listen ๐
- msghdr_
control_ ๐len - msghdr_
flags ๐ - nonblocking ๐
- offset_
of_ ๐path - Returns the offset of the
sun_path
member of the passed unix socket address. - original_
dst ๐ - original_
dst_ ๐ipv6 - Get the value for the
IP6T_SO_ORIGINAL_DST
option on this socket. - peek_
sender ๐ - poll_
connect ๐ - recv ๐
- recv_
from ๐ - recv_
from_ ๐vectored - recv_
vectored ๐ - recvmsg ๐
- send ๐
- send_to ๐
- send_
to_ ๐vectored - send_
vectored ๐ - sendmsg ๐
- set_
msghdr_ ๐control - set_
msghdr_ ๐flags - set_
msghdr_ ๐iov - set_
msghdr_ ๐name - set_
nonblocking ๐ - set_
tcp_ ๐keepalive - set_
timeout_ ๐opt - Wrapper around
setsockopt
to deal with platform specific timeouts. - setsockopt ๐ โ
- Caller must ensure
T
is the correct type foropt
andval
. - shutdown ๐
- socket ๐
- socket_
as_ ๐raw - socket_
from_ ๐ โraw - socket_
into_ ๐raw - socketpair ๐
- timeout_
opt ๐ - Wrapper around
getsockopt
to deal with platform specific timeouts. - to_
in6_ ๐addr - to_
in_ ๐addr - to_
mreqn ๐ - try_
clone ๐ - unix_
sockaddr ๐