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
|
|
|
|
|
|
|
#include "server.h"
|
|
|
|
#include "fdevent.h"
|
|
|
|
|
|
|
|
connection *connection_init(server *srv);
|
|
|
|
int connection_reset(server *srv, connection *con);
|
|
|
|
void connections_free(server *srv);
|
|
|
|
|
|
|
|
connection * connection_accept(server *srv, server_socket *srv_sock);
|
|
|
|
|
|
|
|
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-08 01:18:51 +00:00
|
|
|
int connection_handle_read(server *srv, connection *con);
|
2016-04-07 23:47:49 +00:00
|
|
|
handler_t connection_handle_read_post_state(server *srv, connection *con);
|
2005-02-20 14:27:00 +00:00
|
|
|
|
|
|
|
#endif
|