aboutsummaryrefslogtreecommitdiff
path: root/src/tcp.c
diff options
context:
space:
mode:
authorLiam Devine <dmail00@gmail.com>2011-07-04 23:31:14 +0100
committerSam Roberts <vieuxtech@gmail.com>2012-04-11 13:33:34 -0700
commite15ed19db6eb3385c1b35219c2dfa11953c3d47e (patch)
tree4e38a0b05ac7cbaaa449f2b32dc959409ceae9ea /src/tcp.c
parenta984607f28d0a802acaf1a16da225234af769baa (diff)
downloadluasocket-e15ed19db6eb3385c1b35219c2dfa11953c3d47e.tar.gz
luasocket-e15ed19db6eb3385c1b35219c2dfa11953c3d47e.tar.bz2
luasocket-e15ed19db6eb3385c1b35219c2dfa11953c3d47e.zip
Compiles with Lua 5.1.4 and Lua 5.2.0-beta, although the makefile needs sorting out to take maybe a version number and also the local paths need removing.
Diffstat (limited to 'src/tcp.c')
-rw-r--r--src/tcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tcp.c b/src/tcp.c
index b069136..19ee73c 100644
--- a/src/tcp.c
+++ b/src/tcp.c
@@ -40,7 +40,7 @@ static int meth_setfd(lua_State *L);
40static int meth_dirty(lua_State *L); 40static int meth_dirty(lua_State *L);
41 41
42/* tcp object methods */ 42/* tcp object methods */
43static luaL_reg tcp_methods[] = { 43static luaL_Reg tcp_methods[] = {
44 {"__gc", meth_close}, 44 {"__gc", meth_close},
45 {"__tostring", auxiliar_tostring}, 45 {"__tostring", auxiliar_tostring},
46 {"accept", meth_accept}, 46 {"accept", meth_accept},
@@ -76,7 +76,7 @@ static t_opt optset[] = {
76}; 76};
77 77
78/* functions in library namespace */ 78/* functions in library namespace */
79static luaL_reg func[] = { 79static luaL_Reg func[] = {
80 {"tcp", global_create}, 80 {"tcp", global_create},
81 {"tcp6", global_create6}, 81 {"tcp6", global_create6},
82 {"connect6", global_connect6}, 82 {"connect6", global_connect6},