diff options
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 | ||