diff options
Diffstat (limited to 'src/tcp.c')
-rw-r--r-- | src/tcp.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -2,18 +2,21 @@ | |||
2 | * TCP object | 2 | * TCP object |
3 | * LuaSocket toolkit | 3 | * LuaSocket toolkit |
4 | \*=========================================================================*/ | 4 | \*=========================================================================*/ |
5 | #include <string.h> | 5 | #include "luasocket.h" |
6 | 6 | ||
7 | #include "lua.h" | 7 | #include "lua.h" |
8 | #include "lauxlib.h" | 8 | #include "lauxlib.h" |
9 | #include "compat.h" | ||
10 | 9 | ||
10 | #include "compat.h" | ||
11 | #include "auxiliar.h" | 11 | #include "auxiliar.h" |
12 | |||
12 | #include "socket.h" | 13 | #include "socket.h" |
13 | #include "inet.h" | 14 | #include "inet.h" |
14 | #include "options.h" | 15 | #include "options.h" |
15 | #include "tcp.h" | 16 | #include "tcp.h" |
16 | 17 | ||
18 | #include <string.h> | ||
19 | |||
17 | /*=========================================================================*\ | 20 | /*=========================================================================*\ |
18 | * Internal function prototypes | 21 | * Internal function prototypes |
19 | \*=========================================================================*/ | 22 | \*=========================================================================*/ |
@@ -126,7 +129,7 @@ static luaL_Reg func[] = { | |||
126 | /*-------------------------------------------------------------------------*\ | 129 | /*-------------------------------------------------------------------------*\ |
127 | * Initializes module | 130 | * Initializes module |
128 | \*-------------------------------------------------------------------------*/ | 131 | \*-------------------------------------------------------------------------*/ |
129 | int tcp_open(lua_State *L) | 132 | LUASOCKET_PRIVATE int tcp_open(lua_State *L) |
130 | { | 133 | { |
131 | /* create classes */ | 134 | /* create classes */ |
132 | auxiliar_newclass(L, "tcp{master}", tcp_methods); | 135 | auxiliar_newclass(L, "tcp{master}", tcp_methods); |