22 #define MAX_CONNECTIONS 512
24 #define MAX_ACCEPTS 16
25 #define FREE_ACCEPT_TIME 4
int close_accept(int idx, int sidx)
Definition: accept.c:256
int add_accept(inet_prefix ip, int replace)
Definition: accept.c:211
int max_accepts_per_host
Definition: accept.h:60
int is_ip_acpt_free(inet_prefix ip, int *index)
Definition: accept.c:156
int find_ip_acpt(inet_prefix ip)
Definition: accept.c:134
pthread_mutex_t mtx_acpt_idx
Definition: accept.h:56
int accept_idx
Definition: accept.h:55
unsigned char accepts
Definition: accept.h:35
void destroy_accept_tbl(void)
Definition: accept.c:67
int accept_sidx
Definition: accept.h:55
Definition: request.h:145
int free_accept_time
Definition: accept.h:60
void init_accept_tbl(int startups, int accepts, int time)
Definition: accept.c:38
struct request_tbl rqtbl
Definition: accept.h:44
struct accept_table * accept_tbl
Definition: accept.h:48
inet_prefix ip
Definition: accept.h:34
int find_free_acp_t(int idx)
Definition: accept.c:176
void del_accept(int idx, int *sidx)
Definition: accept.c:239
void add_accept_pid(pid_t pid, int idx, int sidx)
Definition: accept.c:267
int new_accept(int idx, inet_prefix ip)
Definition: accept.c:188
int max_connections
Definition: accept.h:60
time_t * acp_t
Definition: accept.h:39
void update_accept_tbl(void)
Definition: accept.c:86
pid_t * pid
Definition: accept.h:36
pthread_mutex_t mtx_acpt_sidx
Definition: accept.h:56
unsigned char * closed
Definition: accept.h:37
int find_first_free(void)
Definition: accept.c:146
int update_accept_tbl_mutex
Definition: accept.h:58