diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-01-19 18:22:51 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-01-19 18:22:51 +0000 |
commit | 3f1712ed48f9deab4fab67d7d342dc20c2b5b0ce (patch) | |
tree | 4843296b98ab3524b9cbed1c6428b101e8107492 /src/tcp.c | |
parent | fbb42b80cb0d299f38e0a4df9b0fa01228b39225 (diff) | |
download | luasocket-3f1712ed48f9deab4fab67d7d342dc20c2b5b0ce.tar.gz luasocket-3f1712ed48f9deab4fab67d7d342dc20c2b5b0ce.tar.bz2 luasocket-3f1712ed48f9deab4fab67d7d342dc20c2b5b0ce.zip |
Added gethostname.
Cleaned up TODO.
Moved luasocket specific stuff from auxiliar.c to luasocket.c
Diffstat (limited to 'src/tcp.c')
-rw-r--r-- | src/tcp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -153,7 +153,7 @@ static int opt_keepalive(lua_State *L) | |||
153 | return opt_boolean(L, SOL_SOCKET, SO_KEEPALIVE); | 153 | return opt_boolean(L, SOL_SOCKET, SO_KEEPALIVE); |
154 | } | 154 | } |
155 | 155 | ||
156 | int opt_linger(lua_State *L) | 156 | static int opt_linger(lua_State *L) |
157 | { | 157 | { |
158 | p_tcp tcp = (p_tcp) aux_checkclass(L, "tcp{client}", 1); | 158 | p_tcp tcp = (p_tcp) aux_checkclass(L, "tcp{client}", 1); |
159 | struct linger li; | 159 | struct linger li; |
@@ -334,7 +334,7 @@ static int meth_settimeout(lua_State *L) | |||
334 | /*-------------------------------------------------------------------------*\ | 334 | /*-------------------------------------------------------------------------*\ |
335 | * Creates a master tcp object | 335 | * Creates a master tcp object |
336 | \*-------------------------------------------------------------------------*/ | 336 | \*-------------------------------------------------------------------------*/ |
337 | int global_create(lua_State *L) | 337 | static int global_create(lua_State *L) |
338 | { | 338 | { |
339 | t_sock sock; | 339 | t_sock sock; |
340 | const char *err = inet_trycreate(&sock, SOCK_STREAM); | 340 | const char *err = inet_trycreate(&sock, SOCK_STREAM); |