[core] set REDIRECT_STATUS to error_handler_saved_status (fixes #1828)
[lighttpd.git] / src / connections.h
blob92cdc6184a12d052fdaabb6104b5037e7f0cd445
1 #ifndef _CONNECTIONS_H_
2 #define _CONNECTIONS_H_
3 #include "first.h"
5 #include "server.h"
6 #include "fdevent.h"
8 connection *connection_init(server *srv);
9 int connection_reset(server *srv, connection *con);
10 void connections_free(server *srv);
12 connection * connection_accept(server *srv, server_socket *srv_sock);
14 int connection_set_state(server *srv, connection *con, connection_state_t state);
15 const char * connection_get_state(connection_state_t state);
16 const char * connection_get_short_state(connection_state_t state);
17 int connection_state_machine(server *srv, connection *con);
18 int connection_handle_read(server *srv, connection *con);
19 handler_t connection_handle_read_post_state(server *srv, connection *con);
21 #endif