27 lines
755 B
C
27 lines
755 B
C
#ifndef _CONNECTIONS_H_
|
|
#define _CONNECTIONS_H_
|
|
#include "first.h"
|
|
|
|
#include "base.h"
|
|
|
|
__attribute_cold__
|
|
void connections_free(server *srv);
|
|
|
|
__attribute_cold__
|
|
void connection_graceful_shutdown_maint (server *srv);
|
|
|
|
void connection_periodic_maint (server *srv, time_t cur_ts);
|
|
|
|
int connection_send_1xx (request_st *r, connection *con);
|
|
|
|
connection * connection_accept(server *srv, server_socket *srv_sock);
|
|
connection * connection_accepted(server *srv, server_socket *srv_socket, sock_addr *cnt_addr, int cnt);
|
|
|
|
void connection_state_machine(connection *con);
|
|
|
|
extern connections *connection_joblist;
|
|
#define joblist_append(con) connection_list_append(connection_joblist, (con))
|
|
void connection_list_append(connections *conns, connection *con);
|
|
|
|
#endif
|