diff options
Diffstat (limited to 'src/tcp.c')
-rw-r--r-- | src/tcp.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -15,6 +15,7 @@ | |||
15 | #include "socket.h" | 15 | #include "socket.h" |
16 | #include "inet.h" | 16 | #include "inet.h" |
17 | #include "options.h" | 17 | #include "options.h" |
18 | #include "base.h" | ||
18 | #include "tcp.h" | 19 | #include "tcp.h" |
19 | 20 | ||
20 | /*=========================================================================*\ | 21 | /*=========================================================================*\ |
@@ -40,6 +41,7 @@ static int meth_dirty(lua_State *L); | |||
40 | /* tcp object methods */ | 41 | /* tcp object methods */ |
41 | static luaL_reg tcp[] = { | 42 | static luaL_reg tcp[] = { |
42 | {"__gc", meth_close}, | 43 | {"__gc", meth_close}, |
44 | {"__tostring", base_meth_tostring}, | ||
43 | {"accept", meth_accept}, | 45 | {"accept", meth_accept}, |
44 | {"bind", meth_bind}, | 46 | {"bind", meth_bind}, |
45 | {"close", meth_close}, | 47 | {"close", meth_close}, |
@@ -58,7 +60,6 @@ static luaL_reg tcp[] = { | |||
58 | {"settimeout", meth_settimeout}, | 60 | {"settimeout", meth_settimeout}, |
59 | {"shutdown", meth_shutdown}, | 61 | {"shutdown", meth_shutdown}, |
60 | {NULL, NULL} | 62 | {NULL, NULL} |
61 | |||
62 | }; | 63 | }; |
63 | 64 | ||
64 | /* socket option handlers */ | 65 | /* socket option handlers */ |