2005-02-20 14:27:00 +00:00
|
|
|
#ifndef _CONNECTIONS_H_
|
|
|
|
#define _CONNECTIONS_H_
|
2016-03-19 15:14:35 +00:00
|
|
|
#include "first.h"
|
2005-02-20 14:27:00 +00:00
|
|
|
|
2018-03-25 07:45:05 +00:00
|
|
|
#include "base.h"
|
2005-02-20 14:27:00 +00:00
|
|
|
|
2019-02-04 04:27:57 +00:00
|
|
|
__attribute_cold__
|
2005-02-20 14:27:00 +00:00
|
|
|
void connections_free(server *srv);
|
|
|
|
|
2019-06-21 10:51:23 +00:00
|
|
|
__attribute_cold__
|
|
|
|
void connection_graceful_shutdown_maint (server *srv);
|
|
|
|
|
|
|
|
void connection_periodic_maint (server *srv, time_t cur_ts);
|
|
|
|
|
2020-09-18 17:24:39 +00:00
|
|
|
int connection_send_1xx (request_st *r, connection *con);
|
|
|
|
|
2005-02-20 14:27:00 +00:00
|
|
|
connection * connection_accept(server *srv, server_socket *srv_sock);
|
2016-04-29 04:11:45 +00:00
|
|
|
connection * connection_accepted(server *srv, server_socket *srv_socket, sock_addr *cnt_addr, int cnt);
|
2005-02-20 14:27:00 +00:00
|
|
|
|
2020-07-30 11:45:12 +00:00
|
|
|
void connection_state_machine(connection *con);
|
2005-02-20 14:27:00 +00:00
|
|
|
|
2020-10-03 07:10:40 +00:00
|
|
|
extern connections *connection_joblist;
|
|
|
|
#define joblist_append(con) connection_list_append(connection_joblist, (con))
|
2019-10-04 06:10:02 +00:00
|
|
|
void connection_list_append(connections *conns, connection *con);
|
|
|
|
|
2005-02-20 14:27:00 +00:00
|
|
|
#endif
|