blob: ce39a7c490630f10e25d6d3ee8e3fb82a96d1515 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include "tsocket.h"
#include "evloop.h"
#ifndef __CONNECTION_H
#define __CONNECTION_H
struct connection;
typedef struct connection connection_t;
typedef void (*connection_callback_func_t)(connection_t *conn);
connection_t *connection_create(struct tsocket *sock);
void connection_destroy(struct connection *conn);
event_t *connection_event_create(struct tsocket *sock, connection_callback_func_t func);
int connection_fd(connection_t *conn);
#endif
|