Socket Option Name#

Macros#

#define
SO_DEBUG 0x0001

Enables recording of debugging information. This option is not supported in the current release.

#define

Indicates that the socket has had listen(). This option is not supported in the current release.

#define

Allows local address reuse. This option is not supported in the current release.

#define

Keeps connections alive.

#define

Uses interface addresses only. This option is not supported in the current release.

#define

Permits sending of broadcast messages. This option is not supported in the current release.

#define

Bypasses hardware when possible. This option is not supported in the current release.

#define
SO_LINGER 0x0080

Lingers on close if data is present. This option is not supported in the current release.

#define

Leaves received out-of-band data in line. This option is not supported in the current release.

#define

Allows local address and port reuse. This option is not supported in the current release.

#define

Timestamps received datagram traffic. This option is not supported in the current release.

#define
SO_BINDANY 0x1000

Allows binding to any address. This option is not supported in the current release.

#define
SO_ZEROIZE 0x2000

Zeroes out all mbufs sent over the socket. This option is not supported in the current release.

#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. This option is not supported in the current release.

#define

Sets receive low-water mark. This option is not supported in the current release.

#define

Sets send timeout. This option is not supported in the current release.

#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. This option is not supported in the current release.

#define
SO_RTABLE 0x1021

Sets routing table to be used. This option is not supported in the current release.

#define

Gets connect-time credentials. This option is not supported in the current release.

#define
SO_SPLICE 0x1023

Splices data to another socket. This option is not supported in the current release.

#define
SO_DOMAIN 0x1024

Gets socket domain.

#define

Gets socket protocol.

#define

Sets certificate index for SSL socket.

#define

Enables high-performance socket.

#define

Passes SNI extension for SSL socket.

#define

Passes ALPN extension for SSL socket.

Macro Definition Documentation#

SO_DEBUG#

#define SO_DEBUG
Value:
0x0001

Enables recording of debugging information. This option is not supported in the current release.


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

SO_ACCEPTCONN#

#define SO_ACCEPTCONN
Value:
0x0002

Indicates that the socket has had listen(). This option is not supported in the current release.


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

SO_REUSEADDR#

#define SO_REUSEADDR
Value:
0x0004

Allows local address reuse. This option is not supported in the current release.


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

SO_KEEPALIVE#

#define SO_KEEPALIVE
Value:
0x0008

Keeps connections alive.


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

SO_DONTROUTE#

#define SO_DONTROUTE
Value:
0x0010

Uses interface addresses only. This option is not supported in the current release.


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

SO_BROADCAST#

#define SO_BROADCAST
Value:
0x0020

Permits sending of broadcast messages. This option is not supported in the current release.


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

SO_USELOOPBACK#

#define SO_USELOOPBACK
Value:
0x0040

Bypasses hardware when possible. This option is not supported in the current release.


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

SO_LINGER#

#define SO_LINGER
Value:
0x0080

Lingers on close if data is present. This option is not supported in the current release.


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

SO_OOBINLINE#

#define SO_OOBINLINE
Value:
0x0100

Leaves received out-of-band data in line. This option is not supported in the current release.


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

SO_REUSEPORT#

#define SO_REUSEPORT
Value:
0x0200

Allows local address and port reuse. This option is not supported in the current release.


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

SO_TIMESTAMP#

#define SO_TIMESTAMP
Value:
0x0800

Timestamps received datagram traffic. This option is not supported in the current release.


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

SO_BINDANY#

#define SO_BINDANY
Value:
0x1000

Allows binding to any address. This option is not supported in the current release.


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

SO_ZEROIZE#

#define SO_ZEROIZE
Value:
0x2000

Zeroes out all mbufs sent over the socket. This option is not supported in the current release.


Definition at line 94 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 95 of file components/service/bsd_socket/inc/socket.h

SO_SNDBUF#

#define SO_SNDBUF
Value:
0x1001

Sets send buffer size.


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

SO_RCVBUF#

#define SO_RCVBUF
Value:
0x1002

Sets receive buffer size.


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

SO_SNDLOWAT#

#define SO_SNDLOWAT
Value:
0x1003

Sets send low-water mark. This option is not supported in the current release.


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

SO_RCVLOWAT#

#define SO_RCVLOWAT
Value:
0x1004

Sets receive low-water mark. This option is not supported in the current release.


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

SO_SNDTIMEO#

#define SO_SNDTIMEO
Value:
0x1005

Sets send timeout. This option is not supported in the current release.


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

SO_RCVTIMEO#

#define SO_RCVTIMEO
Value:
0x1006

Sets receive timeout.


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

SO_ERROR#

#define SO_ERROR
Value:
0x1007

Gets error status and clears.


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

SO_TYPE#

#define SO_TYPE
Value:
0x1008

Gets socket type.


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

SO_NETPROC#

#define SO_NETPROC
Value:
0x1020

Multiplexes; network processing. This option is not supported in the current release.


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

SO_RTABLE#

#define SO_RTABLE
Value:
0x1021

Sets routing table to be used. This option is not supported in the current release.


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

SO_PEERCRED#

#define SO_PEERCRED
Value:
0x1022

Gets connect-time credentials. This option is not supported in the current release.


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

SO_SPLICE#

#define SO_SPLICE
Value:
0x1023

Splices data to another socket. This option is not supported in the current release.


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

SO_DOMAIN#

#define SO_DOMAIN
Value:
0x1024

Gets socket domain.


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

SO_PROTOCOL#

#define SO_PROTOCOL
Value:
0x1025

Gets socket protocol.


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

SL_SO_CERT_INDEX#

#define SL_SO_CERT_INDEX
Value:
0x1026

Sets certificate index for SSL socket.


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

SL_SO_HIGH_PERFORMANCE_SOCKET#

#define SL_SO_HIGH_PERFORMANCE_SOCKET
Value:
0x1027

Enables high-performance socket.


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

SL_SO_TLS_SNI#

#define SL_SO_TLS_SNI
Value:
0x1028

Passes SNI extension for SSL socket.


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

SL_SO_TLS_ALPN#

#define SL_SO_TLS_ALPN
Value:
0x1029

Passes ALPN extension for SSL socket.


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