mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 06:39:01 +08:00
Trivial re-ordering of socket option bit numbers to match order presented on OpenGroup.org.
This commit is contained in:
+17
-17
@@ -116,38 +116,38 @@
|
||||
|
||||
/* Socket-level options */
|
||||
|
||||
#define SO_DEBUG 0 /* Enables recording of debugging information (get/set).
|
||||
#define SO_ACCEPTCONN 0 /* Reports whether socket listening is enabled (get only).
|
||||
* arg: pointer to integer containing a boolean value */
|
||||
#define SO_ACCEPTCONN 1 /* Reports whether socket listening is enabled (get only).
|
||||
#define SO_BROADCAST 1 /* Permits sending of broadcast messages (get/set).
|
||||
* arg: pointer to integer containing a boolean value */
|
||||
#define SO_BROADCAST 2 /* Permits sending of broadcast messages (get/set).
|
||||
#define SO_DEBUG 2 /* Enables recording of debugging information (get/set).
|
||||
* arg: pointer to integer containing a boolean value */
|
||||
#define SO_REUSEADDR 3 /* Allow reuse of local addresses (get/set)
|
||||
#define SO_DONTROUTE 3 /* Requests that outgoing messages bypass standard routing (get/set)
|
||||
* arg: pointer to integer containing a boolean value */
|
||||
#define SO_KEEPALIVE 4 /* Keeps connections active by enabling the periodic transmission
|
||||
#define SO_ERROR 4 /* Reports and clears error status (get only). arg: returns
|
||||
* an integer value */
|
||||
#define SO_KEEPALIVE 5 /* Keeps connections active by enabling the periodic transmission
|
||||
* of messages (get/set).
|
||||
* arg: pointer to integer containing a boolean value */
|
||||
#define SO_LINGER 5 /* Lingers on a close() if data is present (get/set)
|
||||
#define SO_LINGER 6 /* Lingers on a close() if data is present (get/set)
|
||||
* arg: struct linger */
|
||||
#define SO_OOBINLINE 6 /* Leaves received out-of-band data (data marked urgent) inline
|
||||
#define SO_OOBINLINE 7 /* Leaves received out-of-band data (data marked urgent) inline
|
||||
* (get/set) arg: pointer to integer containing a boolean value */
|
||||
#define SO_SNDBUF 7 /* Sets send buffer size. arg: integer value (get/set). */
|
||||
#define SO_RCVBUF 8 /* Sets receive buffer size. arg: integer value (get/set). */
|
||||
#define SO_ERROR 9 /* Reports and clears error status (get only). arg: returns
|
||||
* an integer value */
|
||||
#define SO_TYPE 10 /* Reports the socket type (get only). return: int */
|
||||
#define SO_DONTROUTE 11 /* Requests that outgoing messages bypass standard routing (get/set)
|
||||
* arg: pointer to integer containing a boolean value */
|
||||
#define SO_RCVLOWAT 12 /* Sets the minimum number of bytes to process for socket input
|
||||
#define SO_RCVLOWAT 9 /* Sets the minimum number of bytes to process for socket input
|
||||
* (get/set). arg: integer value */
|
||||
#define SO_RCVTIMEO 13 /* Sets the timeout value that specifies the maximum amount of time
|
||||
#define SO_RCVTIMEO 10 /* Sets the timeout value that specifies the maximum amount of time
|
||||
* an input function waits until it completes (get/set).
|
||||
* arg: struct timeval */
|
||||
#define SO_SNDLOWAT 14 /* Sets the minimum number of bytes to process for socket output
|
||||
#define SO_REUSEADDR 11 /* Allow reuse of local addresses (get/set)
|
||||
* arg: pointer to integer containing a boolean value */
|
||||
#define SO_SNDBUF 12 /* Sets send buffer size. arg: integer value (get/set). */
|
||||
#define SO_SNDLOWAT 13 /* Sets the minimum number of bytes to process for socket output
|
||||
* (get/set). arg: integer value */
|
||||
#define SO_SNDTIMEO 15 /* Sets the timeout value specifying the amount of time that an
|
||||
#define SO_SNDTIMEO 14 /* Sets the timeout value specifying the amount of time that an
|
||||
* output function blocks because flow control prevents data from
|
||||
* being sent(get/set). arg: struct timeval */
|
||||
#define SO_TYPE 15 /* Reports the socket type (get only). return: int */
|
||||
|
||||
/* Protocol-level socket options may begin with this value */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user