Macrosยง
- syscall ๐Helper macro to execute a system call that returns an
io::Result
.
Structsยง
- See [
Socket::dccp_available_ccids
]. - IpMreq ๐
- IpMreq
Source ๐ - Ipv6
Mreq ๐ - linger ๐
- msghdr ๐
- sockaddr ๐
- sockaddr_
in ๐ - sockaddr_
in6 ๐ - sockaddr_
storage ๐
Constantsยง
- AF_INET ๐
- AF_
INET6 ๐ - AF_UNIX ๐
- IPPROT
O_ ๐DCCP DCCP - IPPROT
O_ ๐ICMP - IPPROT
O_ ๐ICMP V6 - IPPROT
O_ ๐IP - IPPROT
O_ ๐IPV6 - IPPROT
O_ ๐MPTCP Multipath TCP - IPPROT
O_ ๐SCTP SCTP - IPPROT
O_ ๐TCP - IPPROT
O_ ๐UDP - IPPROT
O_ ๐UDPLITE - IPV6_
ADD_ ๐MEMBERSHIP - IPV6_
DROP_ ๐MEMBERSHIP - IPV6_
MULTICAS ๐T_ HOPS - IPV6_
MULTICAS ๐T_ IF - IPV6_
MULTICAS ๐T_ LOOP - IPV6_
RECVTCLASS ๐ - IPV6_
UNICAS ๐T_ HOPS - IPV6_
V6ONLY ๐ - IP_
ADD_ ๐MEMBERSHIP - IP_
DROP_ ๐MEMBERSHIP - IP_
HDRINCL ๐ - IP_
MULTICAS ๐T_ IF - IP_
MULTICAS ๐T_ LOOP - IP_
MULTICAS ๐T_ TTL - IP_
RECVTOS ๐ - IP_TOS ๐
- IP_TTL ๐
- MAX_
BUF_ ๐LEN Maximum size of a buffer passed to system call likerecv
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 ๐Addflag
to the current set flags ofF_GETFD
. - fcntl_
get ๐Get the flags usingcmd
. - fcntl_
remove ๐Removeflag
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 thesun_path
member of the passed unix socket address. - original_
dst ๐ - original_
dst_ ๐ipv6 Get the value for theIP6T_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 aroundsetsockopt
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 aroundgetsockopt
to deal with platform specific timeouts. - to_
in6_ ๐addr - to_
in_ ๐addr - to_
mreqn ๐ - try_
clone ๐ - unix_
sockaddr ๐