aboutsummaryrefslogtreecommitdiff
path: root/src/tcp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tcp.h')
-rw-r--r--src/tcp.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/tcp.h b/src/tcp.h
new file mode 100644
index 0000000..d4cc65c
--- /dev/null
+++ b/src/tcp.h
@@ -0,0 +1,20 @@
1#ifndef TCP_H
2#define TCP_H
3
4#include <lua.h>
5
6#include "buf.h"
7#include "tm.h"
8#include "sock.h"
9
10typedef struct t_tcp_ {
11 t_sock sock;
12 t_io io;
13 t_buf buf;
14 t_tm tm;
15} t_tcp;
16typedef t_tcp *p_tcp;
17
18void tcp_open(lua_State *L);
19
20#endif