Socket Option Name#

Macros#

#define
SO_DEBUG 0x0001

Enables recording of debugging information.

#define

Indicates that the socket has had listen().

#define

Allows local address reuse.

#define

Keeps connections alive.

#define

Uses interface addresses only.

#define

Permits sending of broadcast messages.

#define

Bypasses hardware when possible.

#define
SO_LINGER 0x0080

Lingers on close if data is present.

#define

Leaves received out-of-band data in line.

#define

Allows local address and port reuse.

#define

Timestamps received datagram traffic.

#define
SO_BINDANY 0x1000

Allows binding to any address.

#define
SO_ZEROIZE 0x2000

Zeroes out all mbufs sent over the socket.

#define

Configures max retransmission timeout value. The option value associated with this option name should be a power of 2 between 1 and 32.

#define
SO_SNDBUF 0x1001

Sets send buffer size.

#define
SO_RCVBUF 0x1002

Sets receive buffer size.

#define

Sets send low-water mark.

#define

Sets receive low-water mark.

#define

Sets send timeout.

#define

Sets receive timeout.

#define
SO_ERROR 0x1007

Gets error status and clears.

#define
SO_TYPE 0x1008

Gets socket type.

#define
SO_NETPROC 0x1020

Multiplexes; network processing.

#define
SO_RTABLE 0x1021

Sets routing table to be used.

#define

Gets connect-time credentials.

#define
SO_SPLICE 0x1023

Splices data to another socket.

#define
SO_DOMAIN 0x1024

Gets socket domain.

#define

Gets socket protocol.

#define

Sets certificate index for SSL socket.

#define

Enables high-performance socket.

#define
SO_TLS_SNI 0x1028

Passes SNI extension for SSL socket.

Macro Definition Documentation#

SO_DEBUG#

#define SO_DEBUG
Value:
0x0001

Enables recording of debugging information.


Definition at line 95 of file components/service/bsd_socket/inc/socket.h

SO_ACCEPTCONN#

#define SO_ACCEPTCONN
Value:
0x0002

Indicates that the socket has had listen().


Definition at line 96 of file components/service/bsd_socket/inc/socket.h

SO_REUSEADDR#

#define SO_REUSEADDR
Value:
0x0004

Allows local address reuse.


Definition at line 97 of file components/service/bsd_socket/inc/socket.h

SO_KEEPALIVE#

#define SO_KEEPALIVE
Value:
0x0008

Keeps connections alive.


Definition at line 98 of file components/service/bsd_socket/inc/socket.h

SO_DONTROUTE#

#define SO_DONTROUTE
Value:
0x0010

Uses interface addresses only.


Definition at line 99 of file components/service/bsd_socket/inc/socket.h

SO_BROADCAST#

#define SO_BROADCAST
Value:
0x0020

Permits sending of broadcast messages.


Definition at line 100 of file components/service/bsd_socket/inc/socket.h

SO_USELOOPBACK#

#define SO_USELOOPBACK
Value:
0x0040

Bypasses hardware when possible.


Definition at line 101 of file components/service/bsd_socket/inc/socket.h

SO_LINGER#

#define SO_LINGER
Value:
0x0080

Lingers on close if data is present.


Definition at line 102 of file components/service/bsd_socket/inc/socket.h

SO_OOBINLINE#

#define SO_OOBINLINE
Value:
0x0100

Leaves received out-of-band data in line.


Definition at line 103 of file components/service/bsd_socket/inc/socket.h

SO_REUSEPORT#

#define SO_REUSEPORT
Value:
0x0200

Allows local address and port reuse.


Definition at line 104 of file components/service/bsd_socket/inc/socket.h

SO_TIMESTAMP#

#define SO_TIMESTAMP
Value:
0x0800

Timestamps received datagram traffic.


Definition at line 105 of file components/service/bsd_socket/inc/socket.h

SO_BINDANY#

#define SO_BINDANY
Value:
0x1000

Allows binding to any address.


Definition at line 106 of file components/service/bsd_socket/inc/socket.h

SO_ZEROIZE#

#define SO_ZEROIZE
Value:
0x2000

Zeroes out all mbufs sent over the socket.


Definition at line 107 of file components/service/bsd_socket/inc/socket.h

SO_MAX_RETRANSMISSION_TIMEOUT_VALUE#

#define SO_MAX_RETRANSMISSION_TIMEOUT_VALUE
Value:
0x3012

Configures max retransmission timeout value. The option value associated with this option name should be a power of 2 between 1 and 32.


Definition at line 108 of file components/service/bsd_socket/inc/socket.h

SO_SNDBUF#

#define SO_SNDBUF
Value:
0x1001

Sets send buffer size.


Definition at line 112 of file components/service/bsd_socket/inc/socket.h

SO_RCVBUF#

#define SO_RCVBUF
Value:
0x1002

Sets receive buffer size.


Definition at line 113 of file components/service/bsd_socket/inc/socket.h

SO_SNDLOWAT#

#define SO_SNDLOWAT
Value:
0x1003

Sets send low-water mark.


Definition at line 114 of file components/service/bsd_socket/inc/socket.h

SO_RCVLOWAT#

#define SO_RCVLOWAT
Value:
0x1004

Sets receive low-water mark.


Definition at line 115 of file components/service/bsd_socket/inc/socket.h

SO_SNDTIMEO#

#define SO_SNDTIMEO
Value:
0x1005

Sets send timeout.


Definition at line 116 of file components/service/bsd_socket/inc/socket.h

SO_RCVTIMEO#

#define SO_RCVTIMEO
Value:
0x1006

Sets receive timeout.


Definition at line 117 of file components/service/bsd_socket/inc/socket.h

SO_ERROR#

#define SO_ERROR
Value:
0x1007

Gets error status and clears.


Definition at line 118 of file components/service/bsd_socket/inc/socket.h

SO_TYPE#

#define SO_TYPE
Value:
0x1008

Gets socket type.


Definition at line 119 of file components/service/bsd_socket/inc/socket.h

SO_NETPROC#

#define SO_NETPROC
Value:
0x1020

Multiplexes; network processing.


Definition at line 120 of file components/service/bsd_socket/inc/socket.h

SO_RTABLE#

#define SO_RTABLE
Value:
0x1021

Sets routing table to be used.


Definition at line 121 of file components/service/bsd_socket/inc/socket.h

SO_PEERCRED#

#define SO_PEERCRED
Value:
0x1022

Gets connect-time credentials.


Definition at line 122 of file components/service/bsd_socket/inc/socket.h

SO_SPLICE#

#define SO_SPLICE
Value:
0x1023

Splices data to another socket.


Definition at line 123 of file components/service/bsd_socket/inc/socket.h

SO_DOMAIN#

#define SO_DOMAIN
Value:
0x1024

Gets socket domain.


Definition at line 124 of file components/service/bsd_socket/inc/socket.h

SO_PROTOCOL#

#define SO_PROTOCOL
Value:
0x1025

Gets socket protocol.


Definition at line 125 of file components/service/bsd_socket/inc/socket.h

SO_CERT_INDEX#

#define SO_CERT_INDEX
Value:
0x1026

Sets certificate index for SSL socket.


Definition at line 129 of file components/service/bsd_socket/inc/socket.h

SO_HIGH_PERFORMANCE_SOCKET#

#define SO_HIGH_PERFORMANCE_SOCKET
Value:
0x1027

Enables high-performance socket.


Definition at line 130 of file components/service/bsd_socket/inc/socket.h

SO_TLS_SNI#

#define SO_TLS_SNI
Value:
0x1028

Passes SNI extension for SSL socket.


Definition at line 131 of file components/service/bsd_socket/inc/socket.h