Socket option definitions
Overview
// macros #define APR_INCOMPLETE_READ #define APR_INCOMPLETE_WRITE #define APR_IPV6_V6ONLY #define APR_RESET_NODELAY #define APR_SO_BROADCAST #define APR_SO_DEBUG #define APR_SO_DISCONNECTED #define APR_SO_KEEPALIVE #define APR_SO_LINGER #define APR_SO_NONBLOCK #define APR_SO_RCVBUF #define APR_SO_REUSEADDR #define APR_SO_SNDBUF #define APR_TCP_DEFER_ACCEPT #define APR_TCP_NODELAY #define APR_TCP_NOPUSH
Detailed Documentation
Macros
#define APR_INCOMPLETE_READ
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
like APR_INCOMPLETE_READ, but for write
See also:
#define APR_IPV6_V6ONLY
Don’t accept IPv4 connections on an IPv6 listening socket.
#define APR_RESET_NODELAY
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_BROADCAST
Allow broadcast
#define APR_SO_DEBUG
Debug
#define APR_SO_DISCONNECTED
Disconnected
#define APR_SO_KEEPALIVE
Keepalive
#define APR_SO_LINGER
Linger
#define APR_SO_NONBLOCK
Non-blocking IO
#define APR_SO_RCVBUF
Receive buffer
#define APR_SO_REUSEADDR
Reuse addresses
#define APR_SO_SNDBUF
Send buffer
#define APR_TCP_DEFER_ACCEPT
Delay accepting of new connections until data is available.
See also:
#define APR_TCP_NODELAY
For SCTP sockets, this is mapped to STCP_NODELAY internally.
#define APR_TCP_NOPUSH
No push