Main Page | Modules | Namespace List | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages | Examples

Socket option definitions
[Network Routines]

Collaboration diagram for Socket option definitions:


Defines

#define APR_SO_LINGER   1
#define APR_SO_KEEPALIVE   2
#define APR_SO_DEBUG   4
#define APR_SO_NONBLOCK   8
#define APR_SO_REUSEADDR   16
#define APR_SO_TIMEOUT   32
#define APR_SO_SNDBUF   64
#define APR_SO_RCVBUF   128
#define APR_SO_DISCONNECTED   256
#define APR_TCP_NODELAY   512
#define APR_TCP_NOPUSH   1024
#define APR_RESET_NODELAY   2048
#define APR_INCOMPLETE_READ   4096
#define APR_INCOMPLETE_WRITE   8192
#define APR_IPV6_V6ONLY   16384

Define Documentation

#define APR_INCOMPLETE_READ   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.)

Definition at line 87 of file apr_network_io.h.

Referenced by AP_DECLARE(), ap_process_http_connection(), apr_socket_opt_set(), apr_socket_recv(), and apr_socket_timeout_set().

#define APR_INCOMPLETE_WRITE   8192
 

like APR_INCOMPLETE_READ, but for write

See also:
APR_INCOMPLETE_READ

Definition at line 98 of file apr_network_io.h.

Referenced by apr_socket_send().

#define APR_IPV6_V6ONLY   16384
 

Don't accept IPv4 connections on an IPv6 listening socket.

Definition at line 101 of file apr_network_io.h.

Referenced by apr_socket_opt_set(), and make_sock().

#define APR_RESET_NODELAY   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

Definition at line 81 of file apr_network_io.h.

Referenced by apr_socket_opt_set().

#define APR_SO_DEBUG   4
 

Debug

Definition at line 70 of file apr_network_io.h.

Referenced by apr_socket_opt_set(), and set_debug().

#define APR_SO_DISCONNECTED   256
 

Disconnected

Definition at line 76 of file apr_network_io.h.

#define APR_SO_KEEPALIVE   2
 

Keepalive

Definition at line 69 of file apr_network_io.h.

Referenced by apr_socket_opt_set(), make_sock(), remove_keepalive(), and set_keepalive().

#define APR_SO_LINGER   1
 

Linger

Definition at line 68 of file apr_network_io.h.

Referenced by apr_socket_opt_set().

#define APR_SO_NONBLOCK   8
 

Non-blocking IO

Definition at line 71 of file apr_network_io.h.

Referenced by ap_listen_open(), apr_socket_accept(), apr_socket_opt_set(), apr_socket_timeout_set(), main(), start_connect(), worker_main(), and worker_open_logs().

#define APR_SO_RCVBUF   128
 

Receive buffer

Definition at line 75 of file apr_network_io.h.

Referenced by ap_proxy_ftp_handler(), and apr_socket_opt_set().

#define APR_SO_REUSEADDR   16
 

Reuse addresses

Definition at line 72 of file apr_network_io.h.

Referenced by ap_proxy_ftp_handler(), apr_socket_opt_set(), main(), and make_sock().

#define APR_SO_SNDBUF   64
 

Send buffer

Definition at line 74 of file apr_network_io.h.

Referenced by apr_socket_opt_set(), and make_sock().

#define APR_SO_TIMEOUT   32
 

Timeout

Definition at line 73 of file apr_network_io.h.

Referenced by apr_socket_connect(), apr_socket_opt_get(), apr_socket_opt_set(), apr_socket_recv(), apr_socket_recvfrom(), apr_socket_send(), apr_socket_sendto(), and apr_socket_timeout_set().

#define APR_TCP_NODELAY   512
 

For SCTP sockets, this is mapped to STCP_NODELAY internally.

Definition at line 77 of file apr_network_io.h.

Referenced by apr_socket_accept(), apr_socket_opt_set(), corkable(), and set_socket_vars().

#define APR_TCP_NOPUSH   1024
 

No push

Definition at line 80 of file apr_network_io.h.

Referenced by apr_socket_opt_set(), and corkable().