Skip to main content

Module constants

Module constants 

Source

Constants§

AF_INET
Internet domain sockets for use with IPv4 sockets.
AF_INET6
Internet domain sockets for use with IPv6 sockets.
AF_LOCAL
Non-POSIX, see https://www.man7.org/linux/man-pages/man7/unix.7.html.
AF_UNIX
UNIX domain sockets.
AF_UNSPEC
Unspecified.
IP_ADD_SOURCE_MEMBERSHIP
Non-POSIX, see https://www.man7.org/linux/man-pages/man2/IP_ADD_SOURCE_MEMBERSHIP.2const.html.
IP_DROP_SOURCE_MEMBERSHIP
Non-POSIX, see https://www.man7.org/linux/man-pages/man2/IP_DROP_SOURCE_MEMBERSHIP.2const.html.
MCAST_JOIN_SOURCE_GROUP
Non-POSIX, see https://datatracker.ietf.org/doc/html/rfc3678#section-5.1.2.
MCAST_LEAVE_SOURCE_GROUP
Non-POSIX, see https://datatracker.ietf.org/doc/html/rfc3678#section-5.1.2.
MSG_CMSG_CLOEXEC
Atomically set the FD_CLOEXEC flag on any file descriptors created via SCM_RIGHTS during recvmsg().
MSG_CTRUNC
Control data truncated.
MSG_DONTROUTE
Send without using routing tables.
MSG_DONTWAIT
Non-POSIX, see https://www.man7.org/linux/man-pages/man2/send.2.html.
MSG_EOR
Terminates a record (if supported by the protocol).
MSG_NOSIGNAL
No SIGPIPE generated when an attempt to send is made on a stream-oriented socket that is no longer connected.
MSG_OOB
Out-of-band data.
MSG_PEEK
Leave received data in queue.
MSG_TRUNC
Normal data truncated.
MSG_WAITALL
Attempt to fill the read buffer.
PF_INET
See AF_INET.
PF_INET6
See AF_INET6.
PF_LOCAL
See AF_LOCAL.
PF_UNIX
See AF_UNIX.
PF_UNSPEC
See AF_UNSPEC.
SCM_CREDENTIALS
Non-POSIX, see https://www.man7.org/linux/man-pages/man7/unix.7.html.
SCM_RIGHTS
Indicates that the data array contains the access rights to be sent or received.
SHUT_RD
Disables further receive operations.
SHUT_RDWR
Disables further send and receive operations.
SHUT_WR
Disables further send operations.
SOCK_CLOEXEC
Create a socket file descriptor wit the FD_CLOEXEC flag atomically set on that file descriptor.
SOCK_DGRAM
Datagram socket.
SOCK_NONBLOCK
Create a socket file descriptor with the O_NONBLOCK flag atomically set on the new open file description.
SOCK_RAW
Raw Protocol Interface.
SOCK_RDM
Non-POSIX, see https://www.man7.org/linux/man-pages/man2/socket.2.html.
SOCK_SEQPACKET
Sequenced-packet socket.
SOCK_STREAM
Byte-stream socket.
SOL_SOCKET
Options to be accessed at socket level, not protocol level.
SOMAXCONN
The maximum backlog queue length.
SO_ACCEPTCONN
Socket is accepting connections.
SO_BROADCAST
Transmission of broadcast messages is supported.
SO_BSDCOMPAT
Non-POSIX, see https://www.man7.org/linux/man-pages/man7/socket.7.html.
SO_DEBUG
Debugging information is recorded.
SO_DOMAIN
Socket domain.
SO_DONTROUTE
Bypass normal routing.
SO_ERROR
Socket error status.
SO_KEEPALIVE
Connections are kept alive with periodic messages.
SO_LINGER
Socket lingers on close.
SO_NO_CHECK
Non-POSIX, found in LwIP.
SO_OOBINLINE
Out-of-band data is transmitted inline.
SO_PASSCRED
Non-POSIX, see https://www.man7.org/linux/man-pages/man7/socket.7.html.
SO_PEERCRED
Non-POSIX, see https://www.man7.org/linux/man-pages/man7/socket.7.html.
SO_PEERSEC
Non-POSIX, see https://www.man7.org/linux/man-pages/man2/SO_PEERSEC.2const.html.
SO_PRIORITY
Non-POSIX, see https://www.man7.org/linux/man-pages/man7/socket.7.html.
SO_PROTOCOL
Socket protocol.
SO_RCVBUF
Receive buffer size.
SO_RCVBUFFORCE
Non-POSIX, see https://www.man7.org/linux/man-pages/man7/socket.7.html.
SO_RCVLOWAT
Receive “low water mark”.
SO_RCVTIMEO
Receive timeout.
SO_REUSEADDR
Reuse of local addresses is supported.
SO_REUSEPORT
Non-POSIX, see https://www.man7.org/linux/man-pages/man7/socket.7.html.
SO_SNDBUF
Send buffer size.
SO_SNDBUFFORCE
Non-POSIX, see https://www.man7.org/linux/man-pages/man7/socket.7.html.
SO_SNDLOWAT
Send “low water mark”.
SO_SNDTIMEO
Send timeout.
SO_TYPE
Socket type.