Macrosยง
- syscall ๐Helper macro to execute a system call that returns an
io::Result
.
Structsยง
- See [
Socket::dccp_available_ccids
]. - IpMreq ๐
- IpMreqSource ๐
- Ipv6Mreq ๐
- linger ๐
- msghdr ๐
- sockaddr ๐
- sockaddr_in ๐
- sockaddr_in6 ๐
- sockaddr_storage ๐
Constantsยง
- AF_INET ๐
- AF_INET6 ๐
- AF_UNIX ๐
- IPPROTO_DCCP ๐DCCP
- IPPROTO_ICMP ๐
- IPPROTO_ICMPV6 ๐
- 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_RECVTCLASS ๐
- IPV6_UNICAST_HOPS ๐
- IPV6_V6ONLY ๐
- IP_ADD_MEMBERSHIP ๐
- IP_DROP_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. - 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 ๐