diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-01-18 00:04:20 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-01-18 00:04:20 +0000 |
commit | c8d58798f0b0c789df5c566494112f81ac302432 (patch) | |
tree | 40c52eab0a4bf92636ebe13027d165f0b8452bb1 /src/inet.h | |
parent | 02ef4e7daae6bef629dcb568052755fb85ed2efc (diff) | |
download | luasocket-c8d58798f0b0c789df5c566494112f81ac302432.tar.gz luasocket-c8d58798f0b0c789df5c566494112f81ac302432.tar.bz2 luasocket-c8d58798f0b0c789df5c566494112f81ac302432.zip |
Trying to get connect-with-timeout to work. Darwin works...
Diffstat (limited to 'src/inet.h')
-rw-r--r-- | src/inet.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -18,17 +18,21 @@ | |||
18 | \*=========================================================================*/ | 18 | \*=========================================================================*/ |
19 | #include <lua.h> | 19 | #include <lua.h> |
20 | #include "socket.h" | 20 | #include "socket.h" |
21 | #include "timeout.h" | ||
21 | 22 | ||
22 | #ifdef WIN32 | 23 | #ifdef WIN32 |
23 | #define INET_ATON | 24 | #define INET_ATON |
24 | #endif | 25 | #endif |
25 | 26 | ||
26 | void inet_open(lua_State *L); | 27 | void inet_open(lua_State *L); |
27 | const char *inet_tryconnect(p_sock ps, const char *address, | 28 | |
28 | unsigned short port, int timeout); | 29 | const char *inet_tryconnect(p_sock ps, p_tm tm, const char *address, |
30 | unsigned short port); | ||
29 | const char *inet_trybind(p_sock ps, const char *address, | 31 | const char *inet_trybind(p_sock ps, const char *address, |
30 | unsigned short port, int backlog); | 32 | unsigned short port, int backlog); |
31 | const char *inet_trycreate(p_sock ps, int type); | 33 | const char *inet_trycreate(p_sock ps, int type); |
34 | const char *inet_tryaccept(p_sock ps, p_tm tm, p_sock pc); | ||
35 | |||
32 | int inet_meth_getpeername(lua_State *L, p_sock ps); | 36 | int inet_meth_getpeername(lua_State *L, p_sock ps); |
33 | int inet_meth_getsockname(lua_State *L, p_sock ps); | 37 | int inet_meth_getsockname(lua_State *L, p_sock ps); |
34 | 38 | ||