Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

Socket option definitions
[Network Routines]


Defines

#define APR_SO_LINGER   1 /**< Linger */
#define APR_SO_KEEPALIVE   2 /**< Keepalive */
#define APR_SO_DEBUG   4 /**< Debug */
#define APR_SO_NONBLOCK   8 /**< Non-blocking IO */
#define APR_SO_REUSEADDR   16 /**< Reuse addresses */
#define APR_SO_SNDBUF   64 /**< Send buffer */
#define APR_SO_RCVBUF   128 /**< Receive buffer */
#define APR_SO_DISCONNECTED   256 /**< Disconnected */
#define APR_TCP_NODELAY
#define APR_TCP_NOPUSH   1024 /**< No push */
#define APR_RESET_NODELAY
#define APR_INCOMPLETE_READ
#define APR_INCOMPLETE_WRITE
#define APR_IPV6_V6ONLY
#define APR_TCP_DEFER_ACCEPT

Define Documentation

#define APR_INCOMPLETE_READ
 

Value:

4096  /**< Set on non-blocking sockets
                                   * (timeout != 0) on which the
                                   * previous read() did not fill a buffer
                                   * completely.  the next apr_socket_recv() 
                                   * will first call select()/poll() rather than
                                   * going straight into read().  (Can also
                                   * be set by an application to force a
                                   * select()/poll() call before the next
                                   * read, in cases where the app expects
                                   * that an immediate read would fail.)
                                   */
Set on non-blocking sockets (timeout != 0) on which the previous read() did not fill a buffer completely. the next apr_socket_recv() will first call select()/poll() rather than going straight into read(). (Can also be set by an application to force a select()/poll() call before the next read, in cases where the app expects that an immediate read would fail.)

#define APR_INCOMPLETE_WRITE
 

Value:

8192 /**< like APR_INCOMPLETE_READ, but for write
                                   * @see APR_INCOMPLETE_READ
                                   */
like APR_INCOMPLETE_READ, but for write
See also:
APR_INCOMPLETE_READ

#define APR_IPV6_V6ONLY
 

Value:

16384 /**< Don't accept IPv4 connections on an
                                   * IPv6 listening socket.
                                   */
Don't accept IPv4 connections on an IPv6 listening socket.

#define APR_RESET_NODELAY
 

Value:

2048 /**< This flag is ONLY set internally
                                   * when we set APR_TCP_NOPUSH with
                                   * APR_TCP_NODELAY set to tell us that
                                   * APR_TCP_NODELAY should be turned on
                                   * again when NOPUSH is turned off
                                   */
This flag is ONLY set internally when we set APR_TCP_NOPUSH with APR_TCP_NODELAY set to tell us that APR_TCP_NODELAY should be turned on again when NOPUSH is turned off

#define APR_SO_DEBUG   4 /**< Debug */
 

Debug

#define APR_SO_DISCONNECTED   256 /**< Disconnected */
 

Disconnected

#define APR_SO_KEEPALIVE   2 /**< Keepalive */
 

Keepalive

#define APR_SO_LINGER   1 /**< Linger */
 

Linger

#define APR_SO_NONBLOCK   8 /**< Non-blocking IO */
 

Non-blocking IO

#define APR_SO_RCVBUF   128 /**< Receive buffer */
 

Receive buffer

#define APR_SO_REUSEADDR   16 /**< Reuse addresses */
 

Reuse addresses

#define APR_SO_SNDBUF   64 /**< Send buffer */
 

Send buffer

#define APR_TCP_DEFER_ACCEPT
 

Value:

32768 /**< Delay accepting of new connections 
                                    * until data is available.
                                    * @see apr_socket_accept_filter
                                    */
Delay accepting of new connections until data is available.
See also:
apr_socket_accept_filter

#define APR_TCP_NODELAY
 

Value:

512  /**< For SCTP sockets, this is mapped
                                   * to STCP_NODELAY internally.
                                   */
For SCTP sockets, this is mapped to STCP_NODELAY internally.

#define APR_TCP_NOPUSH   1024 /**< No push */
 

No push


Generated on Sun Nov 20 18:51:50 2005 for Apache Portable Runtime by doxygen 1.3.6