diff options
author | Diego Nehab <diego@impa.br> | 2015-08-22 19:52:01 -0300 |
---|---|---|
committer | Diego Nehab <diego@impa.br> | 2015-08-22 19:52:01 -0300 |
commit | 96965b179c7311f850f72a8629b9ba6d3a31d117 (patch) | |
tree | 05c93629654f686a99ee8923ef2361b7d2244ca8 /src/inet.h | |
parent | b211838648c1cb092e96e3ae721932a212808d96 (diff) | |
download | luasocket-96965b179c7311f850f72a8629b9ba6d3a31d117.tar.gz luasocket-96965b179c7311f850f72a8629b9ba6d3a31d117.tar.bz2 luasocket-96965b179c7311f850f72a8629b9ba6d3a31d117.zip |
New agnostic IPv4 IPv6 functions.
Also dealing with EPROTOTYPE Yosemite seems to be throwing
at us for no reason.
Diffstat (limited to 'src/inet.h')
-rw-r--r-- | src/inet.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,12 +1,12 @@ | |||
1 | #ifndef INET_H | 1 | #ifndef INET_H |
2 | #define INET_H | 2 | #define INET_H |
3 | /*=========================================================================*\ | 3 | /*=========================================================================*\ |
4 | * Internet domain functions | 4 | * Internet domain functions |
5 | * LuaSocket toolkit | 5 | * LuaSocket toolkit |
6 | * | 6 | * |
7 | * This module implements the creation and connection of internet domain | 7 | * This module implements the creation and connection of internet domain |
8 | * sockets, on top of the socket.h interface, and the interface of with the | 8 | * sockets, on top of the socket.h interface, and the interface of with the |
9 | * resolver. | 9 | * resolver. |
10 | * | 10 | * |
11 | * The function inet_aton is provided for the platforms where it is not | 11 | * The function inet_aton is provided for the platforms where it is not |
12 | * available. The module also implements the interface of the internet | 12 | * available. The module also implements the interface of the internet |
@@ -27,8 +27,8 @@ int inet_open(lua_State *L); | |||
27 | const char *inet_trycreate(p_socket ps, int family, int type); | 27 | const char *inet_trycreate(p_socket ps, int family, int type); |
28 | const char *inet_tryconnect(p_socket ps, int *family, const char *address, | 28 | const char *inet_tryconnect(p_socket ps, int *family, const char *address, |
29 | const char *serv, p_timeout tm, struct addrinfo *connecthints); | 29 | const char *serv, p_timeout tm, struct addrinfo *connecthints); |
30 | const char *inet_trybind(p_socket ps, const char *address, const char *serv, | 30 | const char *inet_trybind(p_socket ps, int *family, const char *address, |
31 | struct addrinfo *bindhints); | 31 | const char *serv, struct addrinfo *bindhints); |
32 | const char *inet_trydisconnect(p_socket ps, int family, p_timeout tm); | 32 | const char *inet_trydisconnect(p_socket ps, int family, p_timeout tm); |
33 | const char *inet_tryaccept(p_socket server, int family, p_socket client, p_timeout tm); | 33 | const char *inet_tryaccept(p_socket server, int family, p_socket client, p_timeout tm); |
34 | 34 | ||