aboutsummaryrefslogtreecommitdiff
path: root/src/tcp.c
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2004-01-19 18:22:51 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2004-01-19 18:22:51 +0000
commit3f1712ed48f9deab4fab67d7d342dc20c2b5b0ce (patch)
tree4843296b98ab3524b9cbed1c6428b101e8107492 /src/tcp.c
parentfbb42b80cb0d299f38e0a4df9b0fa01228b39225 (diff)
downloadluasocket-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tcp.c b/src/tcp.c
index 21aa7f5..5505848 100644
--- a/src/tcp.c
+++ b/src/tcp.c
@@ -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
156int opt_linger(lua_State *L) 156static 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\*-------------------------------------------------------------------------*/
337int global_create(lua_State *L) 337static 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);