|
version 1.1.1.1, 2013/10/14 10:32:47
|
version 1.1.1.2, 2016/11/02 10:35:00
|
|
Line 1
|
Line 1
|
| #ifndef _CONNECTIONS_H_ |
#ifndef _CONNECTIONS_H_ |
| #define _CONNECTIONS_H_ |
#define _CONNECTIONS_H_ |
| |
#include "first.h" |
| |
|
| #include "server.h" |
#include "server.h" |
| #include "fdevent.h" |
#include "fdevent.h" |
|
Line 9 int connection_reset(server *srv, connection *con);
|
Line 10 int connection_reset(server *srv, connection *con);
|
| void connections_free(server *srv); |
void connections_free(server *srv); |
| |
|
| connection * connection_accept(server *srv, server_socket *srv_sock); |
connection * connection_accept(server *srv, server_socket *srv_sock); |
| int connection_close(server *srv, connection *con); | connection * connection_accepted(server *srv, server_socket *srv_socket, sock_addr *cnt_addr, int cnt); |
| |
|
| int connection_set_state(server *srv, connection *con, connection_state_t state); |
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_state(connection_state_t state); |
| const char * connection_get_short_state(connection_state_t state); |
const char * connection_get_short_state(connection_state_t state); |
| int connection_state_machine(server *srv, connection *con); |
int connection_state_machine(server *srv, connection *con); |
| |
int connection_handle_read(server *srv, connection *con); |
| |
handler_t connection_handle_read_post_state(server *srv, connection *con); |
| |
void connection_response_reset(server *srv, connection *con); |
| |
|
| #endif |
#endif |