aboutsummaryrefslogtreecommitdiff
path: root/connection.h
diff options
context:
space:
mode:
Diffstat (limited to 'connection.h')
-rw-r--r--connection.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/connection.h b/connection.h
new file mode 100644
index 0000000..c7b24fc
--- /dev/null
+++ b/connection.h
@@ -0,0 +1,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