1 #ifndef _CONNECTIONS_H_ 2 #define _CONNECTIONS_H_ 3 #include "first.h" 4 5 #include "base_decls.h" 6 7 struct server_socket; /* declaration */ 8 9 void connections_pool_clear(server *srv); 10 11 __attribute_cold__ 12 void connections_free(server *srv); 13 14 __attribute_cold__ 15 void connection_graceful_shutdown_maint (server *srv); 16 17 void connection_periodic_maint (server *srv, unix_time64_t cur_ts); 18 19 int connection_send_1xx (request_st *r, connection *con); 20 21 connection * connection_accepted(server *srv, const struct server_socket *srv_socket, sock_addr *cnt_addr, int cnt); 22 23 void connection_state_machine(connection *con); 24 25 #endif 26