struct apr_os_sock_info_t
Overview
everything APR needs to know about an active socket to construct an APR socket from it; currently, this is platform-independent Moreā¦
#include <apr_portable.h> struct apr_os_sock_info_t { // fields apr_os_sock_t* os_sock; struct sockaddr* local; struct sockaddr* remote; int family; int type; int protocol; };
Detailed Documentation
everything APR needs to know about an active socket to construct an APR socket from it; currently, this is platform-independent
Fields
apr_os_sock_t* os_sock
always required
struct sockaddr* local
NULL if not yet bound
struct sockaddr* remote
NULL if not connected
int family
always required (APR_INET, APR_INET6, etc.)
int type
always required (SOCK_STREAM, SOCK_DGRAM, etc.)
int protocol
0 or actual protocol (APR_PROTO_SCTP, APR_PROTO_TCP, etc.)