root/trunk/src/connections.h

Revision 1675, 0.7 kB (checked in by jan, 20 months ago)

another attempt to get the IMPORT/EXPORT stuff right (patch from jtiai)

  • Property svn:eol-style set to native
Line 
1#ifndef _CONNECTIONS_H_
2#define _CONNECTIONS_H_
3
4#include "settings.h"
5#include "server.h"
6#include "fdevent.h"
7
8LI_API connection* connection_init(server *srv);
9LI_API int connection_reset(server *srv, connection *con);
10LI_API void connections_free(server *srv);
11
12LI_API connection* connection_accept(server *srv, server_socket *srv_sock);
13LI_API int connection_close(server *srv, connection *con);
14
15LI_API int connection_set_state(server *srv, connection *con, connection_state_t state);
16LI_API const char * connection_get_state(connection_state_t state);
17LI_API const char * connection_get_short_state(connection_state_t state);
18LI_API int connection_state_machine(server *srv, connection *con);
19
20#endif
Note: See TracBrowser for help on using the browser.