146#define LISTEN_COMMANDS \
147AP_INIT_TAKE1("ListenBacklog", ap_set_listenbacklog, NULL, RSRC_CONF, \
148 "Maximum length of the queue of pending connections, as used by listen(2)"), \
149AP_INIT_TAKE1("ListenCoresBucketsRatio", ap_set_listencbratio, NULL, RSRC_CONF, \
150 "Ratio between the number of CPU cores (online) and the number of listeners buckets"), \
151AP_INIT_TAKE_ARGV("Listen", ap_set_listener, NULL, RSRC_CONF, \
152 "A port number or a numeric IP address and a port number, and an optional protocol"), \
153AP_INIT_TAKE1("SendBufferSize", ap_set_send_buffer_size, NULL, RSRC_CONF, \
154 "Send buffer size in bytes"), \
155AP_INIT_TAKE1("ReceiveBufferSize", ap_set_receive_buffer_size, NULL, \
156 RSRC_CONF, "Receive buffer size in bytes")
#define AP_DECLARE_NONSTD(type)
struct ap_slave_t ap_slave_t
void ap_close_listeners(void)
const char * ap_set_listenbacklog(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_num_listen_buckets
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[])
apr_status_t(* accept_function)(void **csd, ap_listen_rec *lr, apr_pool_t *ptrans)
int ap_close_selected_listeners(ap_slave_t *)
void ap_close_listeners_ex(ap_listen_rec *listeners)
void ap_listen_pre_config(void)
apr_status_t ap_duplicate_listeners(apr_pool_t *p, server_rec *s, ap_listen_rec ***buckets, int *num_buckets)
ap_listen_rec * ap_listeners
int ap_setup_listeners(server_rec *s)
const char * ap_set_receive_buffer_size(cmd_parms *cmd, void *dummy, const char *arg)
static unsigned long num_buckets
Apache's listeners record.
accept_function accept_func
apr_sockaddr_t * bind_addr
A structure to store information for each virtual server.