diff options
Diffstat (limited to 'src/inet.h')
-rw-r--r-- | src/inet.h | 12 |
1 files changed, 6 insertions, 6 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 |
@@ -24,11 +24,11 @@ | |||
24 | 24 | ||
25 | int inet_open(lua_State *L); | 25 | int inet_open(lua_State *L); |
26 | 26 | ||
27 | const char *inet_trycreate(p_socket ps, int family, int type); | 27 | const char *inet_trycreate(p_socket ps, int family, int type, int protocol); |
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 | ||