Added gethostname.
Cleaned up TODO. Moved luasocket specific stuff from auxiliar.c to luasocket.c
This commit is contained in:
parent
fbb42b80cb
commit
3f1712ed48
8 changed files with 145 additions and 106 deletions
|
@ -153,7 +153,7 @@ static int opt_keepalive(lua_State *L)
|
|||
return opt_boolean(L, SOL_SOCKET, SO_KEEPALIVE);
|
||||
}
|
||||
|
||||
int opt_linger(lua_State *L)
|
||||
static int opt_linger(lua_State *L)
|
||||
{
|
||||
p_tcp tcp = (p_tcp) aux_checkclass(L, "tcp{client}", 1);
|
||||
struct linger li;
|
||||
|
@ -334,7 +334,7 @@ static int meth_settimeout(lua_State *L)
|
|||
/*-------------------------------------------------------------------------*\
|
||||
* Creates a master tcp object
|
||||
\*-------------------------------------------------------------------------*/
|
||||
int global_create(lua_State *L)
|
||||
static int global_create(lua_State *L)
|
||||
{
|
||||
t_sock sock;
|
||||
const char *err = inet_trycreate(&sock, SOCK_STREAM);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue