diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-05-25 05:27:44 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-05-25 05:27:44 +0000 |
commit | 888496aa821cd09d925046250ea98b1512293fd5 (patch) | |
tree | 217e2b532762a64b58c4fffcb2cba08ba2243462 /src/tcp.c | |
parent | 4fc164b8eaa0453050a0a859321c327bb2c4f776 (diff) | |
download | luasocket-888496aa821cd09d925046250ea98b1512293fd5.tar.gz luasocket-888496aa821cd09d925046250ea98b1512293fd5.tar.bz2 luasocket-888496aa821cd09d925046250ea98b1512293fd5.zip |
FTP low-level working.
SMTP connection oriented working.
ltn12 improved.
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 */ |