Socket Option Name#
Macros#
Enables recording of debugging information.
Indicates that the socket has had listen().
Allows local address reuse.
Keeps connections alive.
Uses interface addresses only.
Permits sending of broadcast messages.
Bypasses hardware when possible.
Lingers on close if data is present.
Leaves received out-of-band data in line.
Allows local address and port reuse.
Timestamps received datagram traffic.
Allows binding to any address.
Zeroes out all mbufs sent over the socket.
Configures max retransmission timeout value. The option value associated with this option name should be a power of 2 between 1 and 32.
Sets send buffer size.
Sets receive buffer size.
Sets send low-water mark.
Sets receive low-water mark.
Sets send timeout.
Sets receive timeout.
Gets error status and clears.
Gets socket type.
Multiplexes; network processing.
Sets routing table to be used.
Gets connect-time credentials.
Splices data to another socket.
Gets socket domain.
Gets socket protocol.
Sets certificate index for SSL socket.
Enables high-performance socket.
Passes SNI extension for SSL socket.
Macro Definition Documentation#
SO_DEBUG#
#define SO_DEBUGValue:
0x0001
Enables recording of debugging information.
95
of file components/service/bsd_socket/inc/socket.h
SO_ACCEPTCONN#
#define SO_ACCEPTCONNValue:
0x0002
Indicates that the socket has had listen().
96
of file components/service/bsd_socket/inc/socket.h
SO_REUSEADDR#
#define SO_REUSEADDRValue:
0x0004
Allows local address reuse.
97
of file components/service/bsd_socket/inc/socket.h
SO_KEEPALIVE#
#define SO_KEEPALIVEValue:
0x0008
Keeps connections alive.
98
of file components/service/bsd_socket/inc/socket.h
SO_DONTROUTE#
#define SO_DONTROUTEValue:
0x0010
Uses interface addresses only.
99
of file components/service/bsd_socket/inc/socket.h
SO_BROADCAST#
#define SO_BROADCASTValue:
0x0020
Permits sending of broadcast messages.
100
of file components/service/bsd_socket/inc/socket.h
SO_USELOOPBACK#
#define SO_USELOOPBACKValue:
0x0040
Bypasses hardware when possible.
101
of file components/service/bsd_socket/inc/socket.h
SO_LINGER#
#define SO_LINGERValue:
0x0080
Lingers on close if data is present.
102
of file components/service/bsd_socket/inc/socket.h
SO_OOBINLINE#
#define SO_OOBINLINEValue:
0x0100
Leaves received out-of-band data in line.
103
of file components/service/bsd_socket/inc/socket.h
SO_REUSEPORT#
#define SO_REUSEPORTValue:
0x0200
Allows local address and port reuse.
104
of file components/service/bsd_socket/inc/socket.h
SO_TIMESTAMP#
#define SO_TIMESTAMPValue:
0x0800
Timestamps received datagram traffic.
105
of file components/service/bsd_socket/inc/socket.h
SO_BINDANY#
#define SO_BINDANYValue:
0x1000
Allows binding to any address.
106
of file components/service/bsd_socket/inc/socket.h
SO_ZEROIZE#
#define SO_ZEROIZEValue:
0x2000
Zeroes out all mbufs sent over the socket.
107
of file components/service/bsd_socket/inc/socket.h
SO_MAX_RETRANSMISSION_TIMEOUT_VALUE#
#define SO_MAX_RETRANSMISSION_TIMEOUT_VALUEValue:
0x3012
Configures max retransmission timeout value. The option value associated with this option name should be a power of 2 between 1 and 32.
108
of file components/service/bsd_socket/inc/socket.h
SO_SNDBUF#
#define SO_SNDBUFValue:
0x1001
Sets send buffer size.
112
of file components/service/bsd_socket/inc/socket.h
SO_RCVBUF#
#define SO_RCVBUFValue:
0x1002
Sets receive buffer size.
113
of file components/service/bsd_socket/inc/socket.h
SO_SNDLOWAT#
#define SO_SNDLOWATValue:
0x1003
Sets send low-water mark.
114
of file components/service/bsd_socket/inc/socket.h
SO_RCVLOWAT#
#define SO_RCVLOWATValue:
0x1004
Sets receive low-water mark.
115
of file components/service/bsd_socket/inc/socket.h
SO_SNDTIMEO#
#define SO_SNDTIMEOValue:
0x1005
Sets send timeout.
116
of file components/service/bsd_socket/inc/socket.h
SO_RCVTIMEO#
#define SO_RCVTIMEOValue:
0x1006
Sets receive timeout.
117
of file components/service/bsd_socket/inc/socket.h
SO_ERROR#
#define SO_ERRORValue:
0x1007
Gets error status and clears.
118
of file components/service/bsd_socket/inc/socket.h
SO_TYPE#
#define SO_TYPEValue:
0x1008
Gets socket type.
119
of file components/service/bsd_socket/inc/socket.h
SO_NETPROC#
#define SO_NETPROCValue:
0x1020
Multiplexes; network processing.
120
of file components/service/bsd_socket/inc/socket.h
SO_RTABLE#
#define SO_RTABLEValue:
0x1021
Sets routing table to be used.
121
of file components/service/bsd_socket/inc/socket.h
SO_PEERCRED#
#define SO_PEERCREDValue:
0x1022
Gets connect-time credentials.
122
of file components/service/bsd_socket/inc/socket.h
SO_SPLICE#
#define SO_SPLICEValue:
0x1023
Splices data to another socket.
123
of file components/service/bsd_socket/inc/socket.h
SO_DOMAIN#
#define SO_DOMAINValue:
0x1024
Gets socket domain.
124
of file components/service/bsd_socket/inc/socket.h
SO_PROTOCOL#
#define SO_PROTOCOLValue:
0x1025
Gets socket protocol.
125
of file components/service/bsd_socket/inc/socket.h
SO_CERT_INDEX#
#define SO_CERT_INDEXValue:
0x1026
Sets certificate index for SSL socket.
129
of file components/service/bsd_socket/inc/socket.h
SO_HIGH_PERFORMANCE_SOCKET#
#define SO_HIGH_PERFORMANCE_SOCKETValue:
0x1027
Enables high-performance socket.
130
of file components/service/bsd_socket/inc/socket.h
SO_TLS_SNI#
#define SO_TLS_SNIValue:
0x1028
Passes SNI extension for SSL socket.
131
of file components/service/bsd_socket/inc/socket.h