diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2003-05-25 01:54:13 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2003-05-25 01:54:13 +0000 |
commit | 0f6c8d50a99997ac7829864b1c93362b50f1bbf3 (patch) | |
tree | d0cefe3a05484e65b7b7e79d8cae4a1d2e6d19fb /src/tcp.h | |
parent | c1ef3e7103cc652d2004ef1ddc9409b946207f33 (diff) | |
download | luasocket-0f6c8d50a99997ac7829864b1c93362b50f1bbf3.tar.gz luasocket-0f6c8d50a99997ac7829864b1c93362b50f1bbf3.tar.bz2 luasocket-0f6c8d50a99997ac7829864b1c93362b50f1bbf3.zip |
Porting to LUA 5.0 final
Diffstat (limited to 'src/tcp.h')
-rw-r--r-- | src/tcp.h | 20 |
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 | |||
10 | typedef struct t_tcp_ { | ||
11 | t_sock sock; | ||
12 | t_io io; | ||
13 | t_buf buf; | ||
14 | t_tm tm; | ||
15 | } t_tcp; | ||
16 | typedef t_tcp *p_tcp; | ||
17 | |||
18 | void tcp_open(lua_State *L); | ||
19 | |||
20 | #endif | ||