Apache2
|
Data Structures | |
struct | ap_listen_rec |
Apache's listeners record. More... | |
Macros | |
#define | AP_LISTEN_SPECIFIC_ERRORS (0x0001) |
#define | AP_LISTEN_FREEBIND (0x0002) |
#define | AP_LISTEN_REUSEPORT (0x0004) |
#define | AP_LISTEN_V6ONLY (0x0008) |
#define | LISTEN_COMMANDS |
Typedefs | |
typedef struct ap_slave_t | ap_slave_t |
typedef struct ap_listen_rec | ap_listen_rec |
typedef apr_status_t(* | accept_function) (void **csd, ap_listen_rec *lr, apr_pool_t *ptrans) |
Functions | |
int | ap_accept_error_is_nonfatal (apr_status_t rv) |
void | ap_listen_pre_config (void) |
int | ap_setup_listeners (server_rec *s) |
apr_status_t | ap_duplicate_listeners (apr_pool_t *p, server_rec *s, ap_listen_rec ***buckets, int *num_buckets) |
void | ap_close_listeners (void) |
void | ap_close_listeners_ex (ap_listen_rec *listeners) |
int | ap_close_selected_listeners (ap_slave_t *) |
const char * | ap_set_listenbacklog (cmd_parms *cmd, void *dummy, const char *arg) |
const char * | ap_set_listencbratio (cmd_parms *cmd, void *dummy, const char *arg) |
const char * | ap_set_listener (cmd_parms *cmd, void *dummy, int argc, char *const argv[]) |
const char * | ap_set_send_buffer_size (cmd_parms *cmd, void *dummy, const char *arg) |
const char * | ap_set_receive_buffer_size (cmd_parms *cmd, void *dummy, const char *arg) |
const char * | ap_set_accept_errors_nonfatal (cmd_parms *cmd, void *dummy, int flag) |
Variables | |
AP_DECLARE_DATA ap_listen_rec * | ap_listeners |
AP_DECLARE_DATA int | ap_num_listen_buckets |
AP_DECLARE_DATA int | ap_have_so_reuseport |
AP_DECLARE_DATA int | ap_accept_errors_nonfatal |
#define AP_LISTEN_FREEBIND (0x0002) |
#define AP_LISTEN_REUSEPORT (0x0004) |
#define AP_LISTEN_SPECIFIC_ERRORS (0x0001) |
#define AP_LISTEN_V6ONLY (0x0008) |
#define LISTEN_COMMANDS |
typedef apr_status_t(* accept_function) (void **csd, ap_listen_rec *lr, apr_pool_t *ptrans) |
typedef struct ap_listen_rec ap_listen_rec |
typedef struct ap_slave_t ap_slave_t |
int ap_accept_error_is_nonfatal | ( | apr_status_t | rv | ) |
void ap_close_listeners | ( | void | ) |
Loop through the global ap_listen_rec list and close each of the sockets.
void ap_close_listeners_ex | ( | ap_listen_rec * | listeners | ) |
Loop through the given ap_listen_rec list and close each of the sockets.
listeners | The listener to close. |
int ap_close_selected_listeners | ( | ap_slave_t * | ) |
FIXMEDOC
apr_status_t ap_duplicate_listeners | ( | apr_pool_t * | p, |
server_rec * | s, | ||
ap_listen_rec *** | buckets, | ||
int * | num_buckets | ||
) |
This function duplicates ap_listeners into multiple buckets when configured to (see ListenCoresBucketsRatio) and the platform supports it (eg. number of online CPU cores and SO_REUSEPORT available).
p | The config pool |
s | The global server_rec |
buckets | The array of listeners buckets. |
num_buckets | The total number of listeners buckets (array size). |
void ap_listen_pre_config | ( | void | ) |
Setup all of the defaults for the listener list
const char* ap_set_listenbacklog | ( | cmd_parms * | cmd, |
void * | dummy, | ||
const char * | arg | ||
) |
const char* ap_set_listencbratio | ( | cmd_parms * | cmd, |
void * | dummy, | ||
const char * | arg | ||
) |
const char* ap_set_receive_buffer_size | ( | cmd_parms * | cmd, |
void * | dummy, | ||
const char * | arg | ||
) |
const char* ap_set_send_buffer_size | ( | cmd_parms * | cmd, |
void * | dummy, | ||
const char * | arg | ||
) |
int ap_setup_listeners | ( | server_rec * | s | ) |
Loop through the global ap_listen_rec list and create all of the required sockets. This executes the listen and bind on the sockets.
s | The global server_rec |
|
extern |
|
extern |
|
extern |
The global list of ap_listen_rec structures
|
extern |