summaryrefslogtreecommitdiff
path: root/src/connections.h
blob: b35baa46e9a1c5d14654b010170d505071c2fab4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef _CONNECTIONS_H_
#define _CONNECTIONS_H_
#include "first.h"

#include "base_decls.h"

struct server_socket;   /* declaration */

void connections_pool_clear(server *srv);

__attribute_cold__
void connections_free(server *srv);

__attribute_cold__
void connection_graceful_shutdown_maint (server *srv);

void connection_periodic_maint (server *srv, unix_time64_t cur_ts);

connection * connection_accepted(server *srv, const struct server_socket *srv_socket, sock_addr *cnt_addr, int cnt);

void connection_state_machine(connection *con);

#endif