Module: Socket::Constants

Defined in:
constdefs.c

Overview

Socket::Constants provides socket-related constants. All possible socket constants are listed in the documentation but they may not all be present on your platform.

If the underlying platform doesn't define a constant the corresponding Ruby constant is not defined.

Constant Summary collapse

SOCK_STREAM =

A stream socket provides a sequenced, reliable two-way connection for a byte stream

INT2NUM(SOCK_STREAM)
SOCK_DGRAM =

A datagram socket provides connectionless, unreliable messaging

INT2NUM(SOCK_DGRAM)
SOCK_RAW =

A raw socket provides low-level access for direct access or implementing network protocols

INT2NUM(SOCK_RAW)
SOCK_RDM =

A reliable datagram socket provides reliable delivery of messages

INT2NUM(SOCK_RDM)
SOCK_SEQPACKET =

A sequential packet socket provides sequenced, reliable two-way connection for datagrams

INT2NUM(SOCK_SEQPACKET)
SOCK_PACKET =

Device-level packet access

INT2NUM(SOCK_PACKET)
AF_UNSPEC =

Unspecified protocol, any supported address family

INT2NUM(AF_UNSPEC)
PF_UNSPEC =

Unspecified protocol, any supported address family

INT2NUM(PF_UNSPEC)
AF_INET =

IPv4 protocol

INT2NUM(AF_INET)
PF_INET =

IPv4 protocol

INT2NUM(PF_INET)
AF_INET6 =

IPv6 protocol

INT2NUM(AF_INET6)
PF_INET6 =

IPv6 protocol

INT2NUM(PF_INET6)
AF_UNIX =

UNIX sockets

INT2NUM(AF_UNIX)
PF_UNIX =

UNIX sockets

INT2NUM(PF_UNIX)
AF_AX25 =

AX.25 protocol

INT2NUM(AF_AX25)
PF_AX25 =

AX.25 protocol

INT2NUM(PF_AX25)
AF_IPX =

IPX protocol

INT2NUM(AF_IPX)
PF_IPX =

IPX protocol

INT2NUM(PF_IPX)
AF_APPLETALK =

AppleTalk protocol

INT2NUM(AF_APPLETALK)
PF_APPLETALK =

AppleTalk protocol

INT2NUM(PF_APPLETALK)
AF_LOCAL =

Host-internal protocols

INT2NUM(AF_LOCAL)
PF_LOCAL =

Host-internal protocols

INT2NUM(PF_LOCAL)
INT2NUM(AF_IMPLINK)
INT2NUM(PF_IMPLINK)
AF_PUP =

PARC Universal Packet protocol

INT2NUM(AF_PUP)
PF_PUP =

PARC Universal Packet protocol

INT2NUM(PF_PUP)
AF_CHAOS =

MIT CHAOS protocols

INT2NUM(AF_CHAOS)
PF_CHAOS =

MIT CHAOS protocols

INT2NUM(PF_CHAOS)
AF_NS =

XEROX NS protocols

INT2NUM(AF_NS)
PF_NS =

XEROX NS protocols

INT2NUM(PF_NS)
AF_ISO =

ISO Open Systems Interconnection protocols

INT2NUM(AF_ISO)
PF_ISO =

ISO Open Systems Interconnection protocols

INT2NUM(PF_ISO)
AF_OSI =

ISO Open Systems Interconnection protocols

INT2NUM(AF_OSI)
PF_OSI =

ISO Open Systems Interconnection protocols

INT2NUM(PF_OSI)
AF_ECMA =

European Computer Manufacturers protocols

INT2NUM(AF_ECMA)
PF_ECMA =

European Computer Manufacturers protocols

INT2NUM(PF_ECMA)
AF_DATAKIT =

Datakit protocol

INT2NUM(AF_DATAKIT)
PF_DATAKIT =

Datakit protocol

INT2NUM(PF_DATAKIT)
AF_CCITT =

CCITT (now ITU-T) protocols

INT2NUM(AF_CCITT)
PF_CCITT =

CCITT (now ITU-T) protocols

INT2NUM(PF_CCITT)
AF_SNA =

IBM SNA protocol

INT2NUM(AF_SNA)
PF_SNA =

IBM SNA protocol

INT2NUM(PF_SNA)
AF_DEC =

DECnet protocol

INT2NUM(AF_DEC)
PF_DEC =

DECnet protocol

INT2NUM(PF_DEC)
AF_DLI =

DEC Direct Data Link Interface protocol

INT2NUM(AF_DLI)
PF_DLI =

DEC Direct Data Link Interface protocol

INT2NUM(PF_DLI)
AF_LAT =

Local Area Transport protocol

INT2NUM(AF_LAT)
PF_LAT =

Local Area Transport protocol

INT2NUM(PF_LAT)
INT2NUM(AF_HYLINK)
INT2NUM(PF_HYLINK)
AF_ROUTE =

Internal routing protocol

INT2NUM(AF_ROUTE)
PF_ROUTE =

Internal routing protocol

INT2NUM(PF_ROUTE)
INT2NUM(AF_LINK)
INT2NUM(PF_LINK)
AF_COIP =

Connection-oriented IP

INT2NUM(AF_COIP)
PF_COIP =

Connection-oriented IP

INT2NUM(PF_COIP)
AF_CNT =

Computer Network Technology

INT2NUM(AF_CNT)
PF_CNT =

Computer Network Technology

INT2NUM(PF_CNT)
AF_SIP =

Simple Internet Protocol

INT2NUM(AF_SIP)
PF_SIP =

Simple Internet Protocol

INT2NUM(PF_SIP)
AF_NDRV =

Network driver raw access

INT2NUM(AF_NDRV)
PF_NDRV =

Network driver raw access

INT2NUM(PF_NDRV)
AF_ISDN =

Integrated Services Digital Network

INT2NUM(AF_ISDN)
PF_ISDN =

Integrated Services Digital Network

INT2NUM(PF_ISDN)
AF_NATM =

Native ATM access

INT2NUM(AF_NATM)
PF_NATM =

Native ATM access

INT2NUM(PF_NATM)
AF_SYSTEM =
INT2NUM(AF_SYSTEM)
PF_SYSTEM =
INT2NUM(PF_SYSTEM)
AF_NETBIOS =

NetBIOS

INT2NUM(AF_NETBIOS)
PF_NETBIOS =

NetBIOS

INT2NUM(PF_NETBIOS)
AF_PPP =

Point-to-Point Protocol

INT2NUM(AF_PPP)
PF_PPP =

Point-to-Point Protocol

INT2NUM(PF_PPP)
AF_ATM =

Asynchronous Transfer Mode

INT2NUM(AF_ATM)
PF_ATM =

Asynchronous Transfer Mode

INT2NUM(PF_ATM)
AF_NETGRAPH =

Netgraph sockets

INT2NUM(AF_NETGRAPH)
PF_NETGRAPH =

Netgraph sockets

INT2NUM(PF_NETGRAPH)
AF_MAX =

Maximum address family for this platform

INT2NUM(AF_MAX)
PF_MAX =

Maximum address family for this platform

INT2NUM(PF_MAX)
AF_PACKET =

Direct link-layer access

INT2NUM(AF_PACKET)
PF_PACKET =

Direct link-layer access

INT2NUM(PF_PACKET)
AF_E164 =

CCITT (ITU-T) E.164 recommendation

INT2NUM(AF_E164)
PF_XTP =

eXpress Transfer Protocol

INT2NUM(PF_XTP)
PF_RTIP =
INT2NUM(PF_RTIP)
PF_PIP =
INT2NUM(PF_PIP)
PF_KEY =
INT2NUM(PF_KEY)
MSG_OOB =

Process out-of-band data

INT2NUM(MSG_OOB)
MSG_PEEK =

Peek at incoming message

INT2NUM(MSG_PEEK)
MSG_DONTROUTE =

Send without using the routing tables

INT2NUM(MSG_DONTROUTE)
MSG_EOR =

Data completes record

INT2NUM(MSG_EOR)
MSG_TRUNC =

Data discarded before delivery

INT2NUM(MSG_TRUNC)
MSG_CTRUNC =

Control data lost before delivery

INT2NUM(MSG_CTRUNC)
MSG_WAITALL =

Wait for full request or error

INT2NUM(MSG_WAITALL)
MSG_DONTWAIT =

This message should be non-blocking

INT2NUM(MSG_DONTWAIT)
MSG_EOF =

Data completes connection

INT2NUM(MSG_EOF)
MSG_FLUSH =

Start of a hold sequence. Dumps to so_temp

INT2NUM(MSG_FLUSH)
MSG_HOLD =

Hold fragment in so_temp

INT2NUM(MSG_HOLD)
MSG_SEND =

Send the packet in so_temp

INT2NUM(MSG_SEND)
MSG_HAVEMORE =

Data ready to be read

INT2NUM(MSG_HAVEMORE)
MSG_RCVMORE =

Data remains in the current packet

INT2NUM(MSG_RCVMORE)
MSG_COMPAT =

End of record

INT2NUM(MSG_COMPAT)
MSG_PROXY =

Wait for full request

INT2NUM(MSG_PROXY)
MSG_FIN =
INT2NUM(MSG_FIN)
MSG_SYN =
INT2NUM(MSG_SYN)
MSG_CONFIRM =

Confirm path validity

INT2NUM(MSG_CONFIRM)
MSG_RST =
INT2NUM(MSG_RST)
MSG_ERRQUEUE =

Fetch message from error queue

INT2NUM(MSG_ERRQUEUE)
MSG_NOSIGNAL =

Do not generate SIGPIPE

INT2NUM(MSG_NOSIGNAL)
MSG_MORE =

Sender will send more

INT2NUM(MSG_MORE)
SOL_SOCKET =

Socket-level options

INT2NUM(SOL_SOCKET)
SOL_IP =

IP socket options

INT2NUM(SOL_IP)
SOL_IPX =

IPX socket options

INT2NUM(SOL_IPX)
SOL_AX25 =

AX.25 socket options

INT2NUM(SOL_AX25)
SOL_ATALK =

AppleTalk socket options

INT2NUM(SOL_ATALK)
SOL_TCP =

TCP socket options

INT2NUM(SOL_TCP)
SOL_UDP =

UDP socket options

INT2NUM(SOL_UDP)
IPPROTO_IP =

Dummy protocol for IP

INT2NUM(IPPROTO_IP)
IPPROTO_ICMP =

Control message protocol

INT2NUM(IPPROTO_ICMP)
IPPROTO_IGMP =

Group Management Protocol

INT2NUM(IPPROTO_IGMP)
IPPROTO_GGP =

Gateway to Gateway Protocol

INT2NUM(IPPROTO_GGP)
IPPROTO_TCP =

TCP

INT2NUM(IPPROTO_TCP)
IPPROTO_EGP =

Exterior Gateway Protocol

INT2NUM(IPPROTO_EGP)
IPPROTO_PUP =

PARC Universal Packet protocol

INT2NUM(IPPROTO_PUP)
IPPROTO_UDP =

UDP

INT2NUM(IPPROTO_UDP)
IPPROTO_IDP =

XNS IDP

INT2NUM(IPPROTO_IDP)
IPPROTO_HELLO =

"hello" routing protocol

INT2NUM(IPPROTO_HELLO)
IPPROTO_ND =

Sun net disk protocol

INT2NUM(IPPROTO_ND)
IPPROTO_TP =

ISO transport protocol class 4

INT2NUM(IPPROTO_TP)
IPPROTO_XTP =

Xpress Transport Protocol

INT2NUM(IPPROTO_XTP)
IPPROTO_EON =

ISO cnlp

INT2NUM(IPPROTO_EON)
IPPROTO_BIP =
INT2NUM(IPPROTO_BIP)
IPPROTO_AH =

IP6 auth header

INT2NUM(IPPROTO_AH)
IPPROTO_DSTOPTS =

IP6 destination option

INT2NUM(IPPROTO_DSTOPTS)
IPPROTO_ESP =

IP6 Encapsulated Security Payload

INT2NUM(IPPROTO_ESP)
IPPROTO_FRAGMENT =

IP6 fragmentation header

INT2NUM(IPPROTO_FRAGMENT)
IPPROTO_HOPOPTS =

IP6 hop-by-hop options

INT2NUM(IPPROTO_HOPOPTS)
IPPROTO_ICMPV6 =

ICMP6

INT2NUM(IPPROTO_ICMPV6)
IPPROTO_IPV6 =

IP6 header

INT2NUM(IPPROTO_IPV6)
IPPROTO_NONE =

IP6 no next header

INT2NUM(IPPROTO_NONE)
IPPROTO_ROUTING =

IP6 routing header

INT2NUM(IPPROTO_ROUTING)
IPPROTO_RAW =

Raw IP packet

INT2NUM(IPPROTO_RAW)
IPPROTO_MAX =

Maximum IPPROTO constant

INT2NUM(IPPROTO_MAX)
IPPORT_RESERVED =

Default minimum address for bind or connect

INT2NUM(IPPORT_RESERVED)
IPPORT_USERRESERVED =

Default maximum address for bind or connect

INT2NUM(IPPORT_USERRESERVED)
INADDR_ANY =

A socket bound to INADDR_ANY receives packets from all interfaces and sends from the default IP address

UINT2NUM(INADDR_ANY)
INADDR_BROADCAST =

The network broadcast address

UINT2NUM(INADDR_BROADCAST)
INADDR_LOOPBACK =

The loopback address

UINT2NUM(INADDR_LOOPBACK)
INADDR_UNSPEC_GROUP =

The reserved multicast group

UINT2NUM(INADDR_UNSPEC_GROUP)
INADDR_ALLHOSTS_GROUP =

Multicast group for all systems on this subset

UINT2NUM(INADDR_ALLHOSTS_GROUP)
INADDR_MAX_LOCAL_GROUP =

The last local network multicast group

UINT2NUM(INADDR_MAX_LOCAL_GROUP)
INADDR_NONE =

A bitmask for matching no valid IP address

UINT2NUM(INADDR_NONE)
IP_OPTIONS =

IP options to be included in packets

INT2NUM(IP_OPTIONS)
IP_HDRINCL =

Header is included with data

INT2NUM(IP_HDRINCL)
IP_TOS =

IP type-of-service

INT2NUM(IP_TOS)
IP_TTL =

IP time-to-live

INT2NUM(IP_TTL)
IP_RECVOPTS =

Receive all IP options with datagram

INT2NUM(IP_RECVOPTS)
IP_RECVRETOPTS =

Receive all IP options for response

INT2NUM(IP_RECVRETOPTS)
IP_RECVDSTADDR =

Receive IP destination address with datagram

INT2NUM(IP_RECVDSTADDR)
IP_RETOPTS =

IP options to be included in datagrams

INT2NUM(IP_RETOPTS)
IP_MINTTL =

Minimum TTL allowed for received packets

INT2NUM(IP_MINTTL)
IP_DONTFRAG =

Don't fragment packets

INT2NUM(IP_DONTFRAG)
IP_SENDSRCADDR =

Source address for outgoing UDP datagrams

INT2NUM(IP_SENDSRCADDR)
IP_ONESBCAST =

Force outgoing broadcast datagrams to have the undirected broadcast address

INT2NUM(IP_ONESBCAST)
IP_RECVTTL =

Receive IP TTL with datagrams

INT2NUM(IP_RECVTTL)
IP_RECVIF =

Receive interface information with datagrams

INT2NUM(IP_RECVIF)
IP_RECVSLLA =

Receive link-layer address with datagrams

INT2NUM(IP_RECVSLLA)
IP_PORTRANGE =

Set the port range for sockets with unspecified port numbers

INT2NUM(IP_PORTRANGE)
IP_MULTICAST_IF =

IP multicast interface

INT2NUM(IP_MULTICAST_IF)
IP_MULTICAST_TTL =

IP multicast TTL

INT2NUM(IP_MULTICAST_TTL)
IP_MULTICAST_LOOP =

IP multicast loopback

INT2NUM(IP_MULTICAST_LOOP)
IP_ADD_MEMBERSHIP =

Add a multicast group membership

INT2NUM(IP_ADD_MEMBERSHIP)
IP_DROP_MEMBERSHIP =

Drop a multicast group membership

INT2NUM(IP_DROP_MEMBERSHIP)
IP_DEFAULT_MULTICAST_TTL =

Default multicast TTL

INT2NUM(IP_DEFAULT_MULTICAST_TTL)
IP_DEFAULT_MULTICAST_LOOP =

Default multicast loopback

INT2NUM(IP_DEFAULT_MULTICAST_LOOP)
IP_MAX_MEMBERSHIPS =

Maximum number multicast groups a socket can join

INT2NUM(IP_MAX_MEMBERSHIPS)
IP_ROUTER_ALERT =

Notify transit routers to more closely examine the contents of an IP packet

INT2NUM(IP_ROUTER_ALERT)
IP_PKTINFO =

Receive packet information with datagrams

INT2NUM(IP_PKTINFO)
IP_PKTOPTIONS =

Receive packet options with datagrams

INT2NUM(IP_PKTOPTIONS)
IP_MTU_DISCOVER =

Path MTU discovery

INT2NUM(IP_MTU_DISCOVER)
IP_RECVERR =

Enable extended reliable error message passing

INT2NUM(IP_RECVERR)
IP_RECVTOS =

Receive TOS with incoming packets

INT2NUM(IP_RECVTOS)
IP_MTU =

The Maximum Transmission Unit of the socket

INT2NUM(IP_MTU)
IP_FREEBIND =

Allow binding to nonexistent IP addresses

INT2NUM(IP_FREEBIND)
IP_IPSEC_POLICY =

IPsec security policy

INT2NUM(IP_IPSEC_POLICY)
IP_XFRM_POLICY =
INT2NUM(IP_XFRM_POLICY)
IP_PASSSEC =

Retrieve security context with datagram

INT2NUM(IP_PASSSEC)
IP_PMTUDISC_DONT =

Never send DF frames

INT2NUM(IP_PMTUDISC_DONT)
IP_PMTUDISC_WANT =

Use per-route hints

INT2NUM(IP_PMTUDISC_WANT)
IP_PMTUDISC_DO =

Always send DF frames

INT2NUM(IP_PMTUDISC_DO)
IP_UNBLOCK_SOURCE =

Unblock IPv4 multicast packets with a give source address

INT2NUM(IP_UNBLOCK_SOURCE)
IP_BLOCK_SOURCE =

Block IPv4 multicast packets with a give source address

INT2NUM(IP_BLOCK_SOURCE)
IP_ADD_SOURCE_MEMBERSHIP =

Add a multicast group membership

INT2NUM(IP_ADD_SOURCE_MEMBERSHIP)
IP_DROP_SOURCE_MEMBERSHIP =

Drop a multicast group membership

INT2NUM(IP_DROP_SOURCE_MEMBERSHIP)
IP_MSFILTER =

Multicast source filtering

INT2NUM(IP_MSFILTER)
MCAST_JOIN_GROUP =

Join a multicast group

INT2NUM(MCAST_JOIN_GROUP)
MCAST_BLOCK_SOURCE =

Block multicast packets from this source

INT2NUM(MCAST_BLOCK_SOURCE)
MCAST_UNBLOCK_SOURCE =

Unblock multicast packets from this source

INT2NUM(MCAST_UNBLOCK_SOURCE)
MCAST_LEAVE_GROUP =

Leave a multicast group

INT2NUM(MCAST_LEAVE_GROUP)
MCAST_JOIN_SOURCE_GROUP =

Join a multicast source group

INT2NUM(MCAST_JOIN_SOURCE_GROUP)
MCAST_LEAVE_SOURCE_GROUP =

Leave a multicast source group

INT2NUM(MCAST_LEAVE_SOURCE_GROUP)
MCAST_MSFILTER =

Multicast source filtering

INT2NUM(MCAST_MSFILTER)
MCAST_EXCLUDE =

Exclusive multicast source filter

INT2NUM(MCAST_EXCLUDE)
MCAST_INCLUDE =

Inclusive multicast source filter

INT2NUM(MCAST_INCLUDE)
SO_DEBUG =

Debug info recording

INT2NUM(SO_DEBUG)
SO_REUSEADDR =

Allow local address reuse

INT2NUM(SO_REUSEADDR)
SO_REUSEPORT =

Allow local address and port reuse

INT2NUM(SO_REUSEPORT)
SO_TYPE =

Get the socket type

INT2NUM(SO_TYPE)
SO_ERROR =

Get and clear the error status

INT2NUM(SO_ERROR)
SO_DONTROUTE =

Use interface addresses

INT2NUM(SO_DONTROUTE)
SO_BROADCAST =

Permit sending of broadcast messages

INT2NUM(SO_BROADCAST)
SO_SNDBUF =

Send buffer size

INT2NUM(SO_SNDBUF)
SO_RCVBUF =

Receive buffer size

INT2NUM(SO_RCVBUF)
SO_KEEPALIVE =

Keep connections alive

INT2NUM(SO_KEEPALIVE)
SO_OOBINLINE =

Leave received out-of-band data in-line

INT2NUM(SO_OOBINLINE)
SO_NO_CHECK =

Disable checksums

INT2NUM(SO_NO_CHECK)
SO_PRIORITY =

The protocol-defined priority for all packets on this socket

INT2NUM(SO_PRIORITY)
SO_LINGER =

Linger on close if data is present

INT2NUM(SO_LINGER)
SO_PASSCRED =

Receive SCM_CREDENTIALS messages

INT2NUM(SO_PASSCRED)
SO_PEERCRED =

The credentials of the foreign process connected to this socket

INT2NUM(SO_PEERCRED)
SO_RCVLOWAT =

Receive low-water mark

INT2NUM(SO_RCVLOWAT)
SO_SNDLOWAT =

Send low-water mark

INT2NUM(SO_SNDLOWAT)
SO_RCVTIMEO =

Receive timeout

INT2NUM(SO_RCVTIMEO)
SO_SNDTIMEO =

Send timeout

INT2NUM(SO_SNDTIMEO)
SO_ACCEPTCONN =

Socket has had listen() called on it

INT2NUM(SO_ACCEPTCONN)
SO_USELOOPBACK =

Bypass hardware when possible

INT2NUM(SO_USELOOPBACK)
SO_ACCEPTFILTER =

There is an accept filter

INT2NUM(SO_ACCEPTFILTER)
SO_DONTTRUNC =

Retain unread data

INT2NUM(SO_DONTTRUNC)
SO_WANTMORE =

Give a hint when more data is ready

INT2NUM(SO_WANTMORE)
SO_WANTOOBFLAG =

OOB data is wanted in MSG_FLAG on receive

INT2NUM(SO_WANTOOBFLAG)
SO_NREAD =

Get first packet byte count

INT2NUM(SO_NREAD)
SO_NKE =

Install socket-level Network Kernel Extension

INT2NUM(SO_NKE)
SO_NOSIGPIPE =

Don't SIGPIPE on EPIPE

INT2NUM(SO_NOSIGPIPE)
SO_SECURITY_AUTHENTICATION =
INT2NUM(SO_SECURITY_AUTHENTICATION)
SO_SECURITY_ENCRYPTION_TRANSPORT =
INT2NUM(SO_SECURITY_ENCRYPTION_TRANSPORT)
SO_SECURITY_ENCRYPTION_NETWORK =
INT2NUM(SO_SECURITY_ENCRYPTION_NETWORK)
SO_BINDTODEVICE =

Only send packets from the given interface

INT2NUM(SO_BINDTODEVICE)
SO_ATTACH_FILTER =

Attach an accept filter

INT2NUM(SO_ATTACH_FILTER)
SO_DETACH_FILTER =

Detach an accept filter

INT2NUM(SO_DETACH_FILTER)
SO_PEERNAME =

Name of the connecting user

INT2NUM(SO_PEERNAME)
SO_TIMESTAMP =

Receive timestamp with datagrams (timeval)

INT2NUM(SO_TIMESTAMP)
SO_TIMESTAMPNS =

Receive nanosecond timestamp with datagrams (timespec)

INT2NUM(SO_TIMESTAMPNS)
SO_BINTIME =

Receive timestamp with datagrams (bintime)

INT2NUM(SO_BINTIME)
SO_RECVUCRED =

Receive user credentials with datagram

INT2NUM(SO_RECVUCRED)
SO_MAC_EXEMPT =

Mandatory Access Control exemption for unlabeled peers

INT2NUM(SO_MAC_EXEMPT)
SO_ALLZONES =

Bypass zone boundaries

INT2NUM(SO_ALLZONES)
SOPRI_INTERACTIVE =

Interactive socket priority

INT2NUM(SOPRI_INTERACTIVE)
SOPRI_NORMAL =

Normal socket priority

INT2NUM(SOPRI_NORMAL)
SOPRI_BACKGROUND =

Background socket priority

INT2NUM(SOPRI_BACKGROUND)
IPX_TYPE =
INT2NUM(IPX_TYPE)
TCP_NODELAY =

Don't delay sending to coalesce packets

INT2NUM(TCP_NODELAY)
TCP_MAXSEG =

Set maximum segment size

INT2NUM(TCP_MAXSEG)
TCP_CORK =

Don't send partial frames

INT2NUM(TCP_CORK)
TCP_DEFER_ACCEPT =

Don't notify a listening socket until data is ready

INT2NUM(TCP_DEFER_ACCEPT)
TCP_INFO =

Retrieve information about this socket

INT2NUM(TCP_INFO)
TCP_KEEPCNT =

Maximum number of keepalive probes allowed before dropping a connection

INT2NUM(TCP_KEEPCNT)
TCP_KEEPIDLE =

Idle time before keepalive probes are sent

INT2NUM(TCP_KEEPIDLE)
TCP_KEEPINTVL =

Time between keepalive probes

INT2NUM(TCP_KEEPINTVL)
TCP_LINGER2 =

Lifetime of orphaned FIN_WAIT2 sockets

INT2NUM(TCP_LINGER2)
TCP_MD5SIG =

Use MD5 digests (RFC2385)

INT2NUM(TCP_MD5SIG)
TCP_NOOPT =

Don't use TCP options

INT2NUM(TCP_NOOPT)
TCP_NOPUSH =

Don't push the last block of write

INT2NUM(TCP_NOPUSH)
TCP_QUICKACK =

Enable quickack mode

INT2NUM(TCP_QUICKACK)
TCP_SYNCNT =

Number of SYN retransmits before a connection is dropped

INT2NUM(TCP_SYNCNT)
TCP_WINDOW_CLAMP =

Clamp the size of the advertised window

INT2NUM(TCP_WINDOW_CLAMP)
UDP_CORK =

Don't send partial frames

INT2NUM(UDP_CORK)
EAI_ADDRFAMILY =

Address family for hostname not supported

INT2NUM(EAI_ADDRFAMILY)
EAI_AGAIN =

Temporary failure in name resolution

INT2NUM(EAI_AGAIN)
EAI_BADFLAGS =

Invalid flags

INT2NUM(EAI_BADFLAGS)
EAI_FAIL =

Non-recoverable failure in name resolution

INT2NUM(EAI_FAIL)
EAI_FAMILY =

Address family not supported

INT2NUM(EAI_FAMILY)
EAI_MEMORY =

Memory allocation failure

INT2NUM(EAI_MEMORY)
EAI_NODATA =

No address associated with hostname

INT2NUM(EAI_NODATA)
EAI_NONAME =

Hostname nor servname, or not known

INT2NUM(EAI_NONAME)
EAI_OVERFLOW =

Argument buffer overflow

INT2NUM(EAI_OVERFLOW)
EAI_SERVICE =

Servname not supported for socket type

INT2NUM(EAI_SERVICE)
EAI_SOCKTYPE =

Socket type not supported

INT2NUM(EAI_SOCKTYPE)
EAI_SYSTEM =

System error returned in errno

INT2NUM(EAI_SYSTEM)
EAI_BADHINTS =

Invalid value for hints

INT2NUM(EAI_BADHINTS)
EAI_PROTOCOL =

Resolved protocol is unknown

INT2NUM(EAI_PROTOCOL)
EAI_MAX =

Maximum error code from getaddrinfo

INT2NUM(EAI_MAX)
AI_PASSIVE =

Get address to use with bind()

INT2NUM(AI_PASSIVE)
AI_CANONNAME =

Fill in the canonical name

INT2NUM(AI_CANONNAME)
AI_NUMERICHOST =

Prevent host name resolution

INT2NUM(AI_NUMERICHOST)
AI_NUMERICSERV =

Prevent service name resolution

INT2NUM(AI_NUMERICSERV)
AI_MASK =

Valid flag mask for getaddrinfo (not for application use)

INT2NUM(AI_MASK)
AI_ALL =

Allow all addresses

INT2NUM(AI_ALL)
AI_V4MAPPED_CFG =

Accept IPv4 mapped addresses if the kernel supports it

INT2NUM(AI_V4MAPPED_CFG)
AI_ADDRCONFIG =

Accept only if any address is assigned

INT2NUM(AI_ADDRCONFIG)
AI_V4MAPPED =

Accept IPv4-mapped IPv6 addresses

INT2NUM(AI_V4MAPPED)
AI_DEFAULT =

Default flags for getaddrinfo

INT2NUM(AI_DEFAULT)
NI_MAXHOST =

Maximum length of a hostname

INT2NUM(NI_MAXHOST)
NI_MAXSERV =

Maximum length of a service name

INT2NUM(NI_MAXSERV)
NI_NOFQDN =

An FQDN is not required for local hosts, return only the local part

INT2NUM(NI_NOFQDN)
NI_NUMERICHOST =

Return a numeric address

INT2NUM(NI_NUMERICHOST)
NI_NAMEREQD =

A name is required

INT2NUM(NI_NAMEREQD)
NI_NUMERICSERV =

Return the service name as a digit string

INT2NUM(NI_NUMERICSERV)
NI_DGRAM =

The service specified is a datagram service (looks up UDP ports)

INT2NUM(NI_DGRAM)
SHUT_RD =

Shut down the reading side of the socket

INT2NUM(SHUT_RD)
SHUT_WR =

Shut down the writing side of the socket

INT2NUM(SHUT_WR)
SHUT_RDWR =

Shut down the both sides of the socket

INT2NUM(SHUT_RDWR)
IPV6_JOIN_GROUP =

Join a group membership

INT2NUM(IPV6_JOIN_GROUP)
IPV6_LEAVE_GROUP =

Leave a group membership

INT2NUM(IPV6_LEAVE_GROUP)
IPV6_MULTICAST_HOPS =

IP6 multicast hops

INT2NUM(IPV6_MULTICAST_HOPS)
IPV6_MULTICAST_IF =

IP6 multicast interface

INT2NUM(IPV6_MULTICAST_IF)
IPV6_MULTICAST_LOOP =

IP6 multicast loopback

INT2NUM(IPV6_MULTICAST_LOOP)
IPV6_UNICAST_HOPS =

IP6 unicast hops

INT2NUM(IPV6_UNICAST_HOPS)
IPV6_V6ONLY =

Only bind IPv6 with a wildcard bind

INT2NUM(IPV6_V6ONLY)
IPV6_CHECKSUM =

Checksum offset for raw sockets

INT2NUM(IPV6_CHECKSUM)
IPV6_DONTFRAG =

Don't fragment packets

INT2NUM(IPV6_DONTFRAG)
IPV6_DSTOPTS =

Destination option

INT2NUM(IPV6_DSTOPTS)
IPV6_HOPLIMIT =

Hop limit

INT2NUM(IPV6_HOPLIMIT)
IPV6_HOPOPTS =

Hop-by-hop option

INT2NUM(IPV6_HOPOPTS)
IPV6_NEXTHOP =

Next hop address

INT2NUM(IPV6_NEXTHOP)
IPV6_PATHMTU =

Retrieve current path MTU

INT2NUM(IPV6_PATHMTU)
IPV6_PKTINFO =

Receive packet information with datagram

INT2NUM(IPV6_PKTINFO)
IPV6_RECVDSTOPTS =

Receive all IP6 options for response

INT2NUM(IPV6_RECVDSTOPTS)
IPV6_RECVHOPLIMIT =

Receive hop limit with datagram

INT2NUM(IPV6_RECVHOPLIMIT)
IPV6_RECVHOPOPTS =

Receive hop-by-hop options

INT2NUM(IPV6_RECVHOPOPTS)
IPV6_RECVPKTINFO =

Receive destination IP address and incoming interface

INT2NUM(IPV6_RECVPKTINFO)
IPV6_RECVRTHDR =

Receive routing header

INT2NUM(IPV6_RECVRTHDR)
IPV6_RECVTCLASS =

Receive traffic class

INT2NUM(IPV6_RECVTCLASS)
IPV6_RTHDR =

Allows removal of sticky routing headers

INT2NUM(IPV6_RTHDR)
IPV6_RTHDRDSTOPTS =

Allows removal of sticky destination options header

INT2NUM(IPV6_RTHDRDSTOPTS)
IPV6_RTHDR_TYPE_0 =

Routing header type 0

INT2NUM(IPV6_RTHDR_TYPE_0)
IPV6_RECVPATHMTU =

Receive current path MTU with datagram

INT2NUM(IPV6_RECVPATHMTU)
IPV6_TCLASS =

Specify the traffic class

INT2NUM(IPV6_TCLASS)
IPV6_USE_MIN_MTU =

Use the minimum MTU size

INT2NUM(IPV6_USE_MIN_MTU)
INET_ADDRSTRLEN =

Maximum length of an IPv4 address string

INT2NUM(INET_ADDRSTRLEN)
INET6_ADDRSTRLEN =

Maximum length of an IPv6 address string

INT2NUM(INET6_ADDRSTRLEN)
IFNAMSIZ =

Maximum interface name size

INT2NUM(IFNAMSIZ)
IF_NAMESIZE =

Maximum interface name size

INT2NUM(IF_NAMESIZE)
SOMAXCONN =

Maximum connection requests that may be queued for a socket

INT2NUM(SOMAXCONN)
SCM_RIGHTS =

Access rights

INT2NUM(SCM_RIGHTS)
SCM_TIMESTAMP =

Timestamp (timeval)

INT2NUM(SCM_TIMESTAMP)
SCM_TIMESTAMPNS =

Timespec (timespec)

INT2NUM(SCM_TIMESTAMPNS)
SCM_BINTIME =

Timestamp (bintime)

INT2NUM(SCM_BINTIME)
SCM_CREDENTIALS =

The sender's credentials

INT2NUM(SCM_CREDENTIALS)
SCM_CREDS =

Process credentials

INT2NUM(SCM_CREDS)
SCM_UCRED =

User credentials

INT2NUM(SCM_UCRED)
LOCAL_PEERCRED =

Retrieve peer credentials

INT2NUM(LOCAL_PEERCRED)
LOCAL_CREDS =

Pass credentials to receiver

INT2NUM(LOCAL_CREDS)
LOCAL_CONNWAIT =

Connect blocks until accepted

INT2NUM(LOCAL_CONNWAIT)