Apache HTTPD
Macros | Functions | Variables
sockets.c File Reference
#include "apr_arch_networkio.h"
#include "apr_network_io.h"
#include "apr_strings.h"
#include "apr_support.h"
#include "apr_portable.h"
#include "apr_arch_inherit.h"

Go to the source code of this file.

Macros

#define GENERIC_INADDR_ANY_LEN   16
 

Functions

static apr_status_t socket_cleanup (void *sock)
 
static apr_status_t socket_child_cleanup (void *sock)
 
static void set_socket_vars (apr_socket_t *sock, int family, int type, int protocol)
 
static void alloc_socket (apr_socket_t **new, apr_pool_t *p)
 
apr_status_t apr_socket_protocol_get (apr_socket_t *sock, int *protocol)
 
apr_status_t apr_socket_create (apr_socket_t **new, int ofamily, int type, int protocol, apr_pool_t *cont)
 
apr_status_t apr_socket_shutdown (apr_socket_t *thesocket, apr_shutdown_how_e how)
 
apr_status_t apr_socket_close (apr_socket_t *thesocket)
 
apr_status_t apr_socket_bind (apr_socket_t *sock, apr_sockaddr_t *sa)
 
apr_status_t apr_socket_listen (apr_socket_t *sock, apr_int32_t backlog)
 
apr_status_t apr_socket_accept (apr_socket_t **new, apr_socket_t *sock, apr_pool_t *connection_context)
 
apr_status_t apr_socket_connect (apr_socket_t *sock, apr_sockaddr_t *sa)
 
apr_status_t apr_socket_type_get (apr_socket_t *sock, int *type)
 
apr_status_t apr_socket_data_get (void **data, const char *key, apr_socket_t *sock)
 
apr_status_t apr_socket_data_set (apr_socket_t *sock, void *data, const char *key, apr_status_t(*cleanup)(void *))
 
apr_status_t apr_os_sock_get (apr_os_sock_t *thesock, apr_socket_t *sock)
 
apr_status_t apr_os_sock_make (apr_socket_t **apr_sock, apr_os_sock_info_t *os_sock_info, apr_pool_t *cont)
 
apr_status_t apr_os_sock_put (apr_socket_t **sock, apr_os_sock_t *thesock, apr_pool_t *cont)
 
 APR_DECLARE (apr_pool_t *)
 

Variables

static char generic_inaddr_any [16] = {0}
 

Macro Definition Documentation

◆ GENERIC_INADDR_ANY_LEN

#define GENERIC_INADDR_ANY_LEN   16

Definition at line 32 of file sockets.c.

Function Documentation

◆ alloc_socket()

static void alloc_socket ( apr_socket_t **  new,
apr_pool_t p 
)
static

Definition at line 92 of file sockets.c.

◆ apr_os_sock_get()

apr_status_t apr_os_sock_get ( apr_os_sock_t thesock,
apr_socket_t sock 
)

Definition at line 506 of file sockets.c.

◆ apr_os_sock_make()

apr_status_t apr_os_sock_make ( apr_socket_t **  apr_sock,
apr_os_sock_info_t os_sock_info,
apr_pool_t cont 
)

Definition at line 512 of file sockets.c.

◆ apr_os_sock_put()

apr_status_t apr_os_sock_put ( apr_socket_t **  sock,
apr_os_sock_t thesock,
apr_pool_t cont 
)

Definition at line 550 of file sockets.c.

◆ apr_socket_accept()

apr_status_t apr_socket_accept ( apr_socket_t **  new,
apr_socket_t sock,
apr_pool_t connection_context 
)

Definition at line 247 of file sockets.c.

◆ apr_socket_bind()

apr_status_t apr_socket_bind ( apr_socket_t sock,
apr_sockaddr_t sa 
)

Definition at line 216 of file sockets.c.

◆ apr_socket_close()

apr_status_t apr_socket_close ( apr_socket_t thesocket)

Definition at line 211 of file sockets.c.

◆ apr_socket_connect()

apr_status_t apr_socket_connect ( apr_socket_t sock,
apr_sockaddr_t sa 
)

Definition at line 388 of file sockets.c.

◆ apr_socket_create()

apr_status_t apr_socket_create ( apr_socket_t **  new,
int  ofamily,
int  type,
int  protocol,
apr_pool_t cont 
)

Definition at line 116 of file sockets.c.

◆ apr_socket_data_get()

apr_status_t apr_socket_data_get ( void **  data,
const char key,
apr_socket_t sock 
)

Definition at line 472 of file sockets.c.

◆ apr_socket_data_set()

apr_status_t apr_socket_data_set ( apr_socket_t sock,
void *  data,
const char key,
apr_status_t(*)(void *)  cleanup 
)

Definition at line 489 of file sockets.c.

◆ apr_socket_listen()

apr_status_t apr_socket_listen ( apr_socket_t sock,
apr_int32_t  backlog 
)

Definition at line 239 of file sockets.c.

◆ apr_socket_protocol_get()

apr_status_t apr_socket_protocol_get ( apr_socket_t sock,
int protocol 
)

Definition at line 110 of file sockets.c.

◆ apr_socket_shutdown()

apr_status_t apr_socket_shutdown ( apr_socket_t thesocket,
apr_shutdown_how_e  how 
)

Definition at line 205 of file sockets.c.

◆ apr_socket_type_get()

apr_status_t apr_socket_type_get ( apr_socket_t sock,
int type 
)

Definition at line 466 of file sockets.c.

◆ set_socket_vars()

static void set_socket_vars ( apr_socket_t sock,
int  family,
int  type,
int  protocol 
)
static

Definition at line 77 of file sockets.c.

◆ socket_child_cleanup()

static apr_status_t socket_child_cleanup ( void *  sock)
static

Definition at line 65 of file sockets.c.

◆ socket_cleanup()

static apr_status_t socket_cleanup ( void *  sock)
static

Definition at line 38 of file sockets.c.

Variable Documentation

◆ generic_inaddr_any

char generic_inaddr_any[16] = {0}
static

Definition at line 36 of file sockets.c.