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);
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
int connection_set_state(server *srv, connection *con, connection_state_t state);
|
|
|
|
const char * connection_get_state(connection_state_t state);
|
|
|
|
const char * connection_get_short_state(connection_state_t state);
|
|
|
|
int connection_state_machine(server *srv, connection *con);
|
2016-04-07 23:47:49 +00:00
|
|
|
handler_t connection_handle_read_post_state(server *srv, connection *con);
|
2016-12-16 16:06:29 +00:00
|
|
|
handler_t connection_handle_read_post_error(server *srv, connection *con, int http_status);
|
2016-12-24 12:19:26 +00:00
|
|
|
int connection_write_chunkqueue(server *srv, connection *con, chunkqueue *c, off_t max_bytes);
|
2016-07-14 18:29:02 +00:00
|
|
|
void connection_response_reset(server *srv, connection *con);
|
2005-02-20 14:27:00 +00:00
|
|
|
|
|
|
|
#endif
|