aboutsummaryrefslogtreecommitdiff
path: root/src/inet.h
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2004-01-18 00:04:20 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2004-01-18 00:04:20 +0000
commitc8d58798f0b0c789df5c566494112f81ac302432 (patch)
tree40c52eab0a4bf92636ebe13027d165f0b8452bb1 /src/inet.h
parent02ef4e7daae6bef629dcb568052755fb85ed2efc (diff)
downloadluasocket-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.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/inet.h b/src/inet.h
index 08979c1..ad52801 100644
--- a/src/inet.h
+++ b/src/inet.h
@@ -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
26void inet_open(lua_State *L); 27void inet_open(lua_State *L);
27const char *inet_tryconnect(p_sock ps, const char *address, 28
28 unsigned short port, int timeout); 29const char *inet_tryconnect(p_sock ps, p_tm tm, const char *address,
30 unsigned short port);
29const char *inet_trybind(p_sock ps, const char *address, 31const char *inet_trybind(p_sock ps, const char *address,
30 unsigned short port, int backlog); 32 unsigned short port, int backlog);
31const char *inet_trycreate(p_sock ps, int type); 33const char *inet_trycreate(p_sock ps, int type);
34const char *inet_tryaccept(p_sock ps, p_tm tm, p_sock pc);
35
32int inet_meth_getpeername(lua_State *L, p_sock ps); 36int inet_meth_getpeername(lua_State *L, p_sock ps);
33int inet_meth_getsockname(lua_State *L, p_sock ps); 37int inet_meth_getsockname(lua_State *L, p_sock ps);
34 38