include/sys/socket.h: Break up some long lines
This commit is contained in:
parent
5393622d07
commit
8fa3f54ba9
@ -81,15 +81,23 @@
|
||||
* the communication semantics.
|
||||
*/
|
||||
|
||||
#define SOCK_STREAM 0 /* Provides sequenced, reliable, two-way, connection-based byte streams.
|
||||
* An out-of-band data transmission mechanism may be supported. */
|
||||
#define SOCK_DGRAM 1 /* Supports datagrams (connectionless, unreliable messages of a fixed
|
||||
* maximum length). */
|
||||
#define SOCK_SEQPACKET 2 /* Provides a sequenced, reliable, two-way connection-based data
|
||||
* transmission path for datagrams of fixed maximum length; a consumer
|
||||
* is required to read an entire packet with each read system call. */
|
||||
#define SOCK_STREAM 0 /* Provides sequenced, reliable, two-way,
|
||||
* connection-based byte streams. An out-of-band data
|
||||
* transmission mechanism may be supported.
|
||||
*/
|
||||
#define SOCK_DGRAM 1 /* Supports datagrams (connectionless, unreliable
|
||||
* messages of a fixed maximum length).
|
||||
*/
|
||||
#define SOCK_SEQPACKET 2 /* Provides a sequenced, reliable, two-way
|
||||
* connection-based data transmission path for
|
||||
* datagrams of fixed maximum length; a consumer is
|
||||
* required to read an entire packet with each read
|
||||
* system call.
|
||||
*/
|
||||
#define SOCK_RAW 3 /* Provides raw network protocol access. */
|
||||
#define SOCK_RDM 4 /* Provides a reliable datagram layer that does not guarantee ordering. */
|
||||
#define SOCK_RDM 4 /* Provides a reliable datagram layer that does not
|
||||
* guarantee ordering.
|
||||
*/
|
||||
#define SOCK_PACKET 5 /* Obsolete and should not be used in new programs */
|
||||
|
||||
/* Bits in the FLAGS argument to `send', `recv', et al. These are the bits
|
||||
@ -119,38 +127,72 @@
|
||||
|
||||
/* Socket-level options */
|
||||
|
||||
#define SO_ACCEPTCONN 0 /* Reports whether socket listening is enabled (get only).
|
||||
* arg: pointer to integer containing a boolean value */
|
||||
#define SO_BROADCAST 1 /* Permits sending of broadcast messages (get/set).
|
||||
* arg: pointer to integer containing a boolean value */
|
||||
#define SO_DEBUG 2 /* Enables recording of debugging information (get/set).
|
||||
* arg: pointer to integer containing a boolean value */
|
||||
#define SO_DONTROUTE 3 /* Requests that outgoing messages bypass standard routing (get/set)
|
||||
* arg: pointer to integer containing a boolean value */
|
||||
#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 int value */
|
||||
#define SO_LINGER 6 /* Lingers on a close() if data is present (get/set)
|
||||
* arg: struct linger */
|
||||
#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_RCVBUF 8 /* Sets receive buffer size. arg: integer value (get/set). */
|
||||
#define SO_RCVLOWAT 9 /* Sets the minimum number of bytes to process for socket input
|
||||
* (get/set). arg: integer value */
|
||||
#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_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 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 */
|
||||
#define SO_ACCEPTCONN 0 /* Reports whether socket listening is enabled
|
||||
* (get only).
|
||||
* arg: pointer to integer containing a boolean
|
||||
* value
|
||||
*/
|
||||
#define SO_BROADCAST 1 /* Permits sending of broadcast messages (get/set).
|
||||
* arg: pointer to integer containing a boolean
|
||||
* value
|
||||
*/
|
||||
#define SO_DEBUG 2 /* Enables recording of debugging information
|
||||
* (get/set).
|
||||
* arg: pointer to integer containing a boolean
|
||||
* value
|
||||
*/
|
||||
#define SO_DONTROUTE 3 /* Requests that outgoing messages bypass standard
|
||||
* routing (get/set)
|
||||
* arg: pointer to integer containing a boolean
|
||||
* value
|
||||
*/
|
||||
#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 int
|
||||
* value
|
||||
*/
|
||||
#define SO_LINGER 6 /* Lingers on a close() if data is present (get/set)
|
||||
* arg: struct linger
|
||||
*/
|
||||
#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_RCVBUF 8 /* Sets receive buffer size.
|
||||
* arg: integer value (get/set).
|
||||
*/
|
||||
#define SO_RCVLOWAT 9 /* Sets the minimum number of bytes to process for
|
||||
* socket input (get/set).
|
||||
* arg: integer value
|
||||
*/
|
||||
#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_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 (get/set).
|
||||
* arg: integer value
|
||||
*/
|
||||
#define SO_SNDLOWAT 13 /* Sets the minimum number of bytes to process for
|
||||
* socket output (get/set).
|
||||
* arg: integer value
|
||||
*/
|
||||
#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 operations */
|
||||
|
||||
@ -171,7 +213,9 @@
|
||||
|
||||
#define SHUT_RD 1 /* Bit 0: Disables further receive operations */
|
||||
#define SHUT_WR 2 /* Bit 1: Disables further send operations */
|
||||
#define SHUT_RDWR 3 /* Bits 0+1: Disables further send and receive operations */
|
||||
#define SHUT_RDWR 3 /* Bits 0+1: Disables further send and receive
|
||||
* operations
|
||||
*/
|
||||
|
||||
/****************************************************************************
|
||||
* Type Definitions
|
||||
|
Loading…
x
Reference in New Issue
Block a user