aboutsummaryrefslogtreecommitdiff
path: root/connection.h
blob: c7b24fc45c970df01d14f059939b8d3c49b08e99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "tsocket.h"
#include "eventloop.h"

#ifndef __CONNECTION_H
#define __CONNECTION_H

struct connection {
    struct tsocket *sock;
};

struct connection *connectionNew(struct tsocket *sock);
void connectionDel(struct connection *conn);
struct event *connectionNewEvent(struct connection *conn);

#endif