aboutsummaryrefslogtreecommitdiff
path: root/src/inet.h
diff options
context:
space:
mode:
authorDiego Nehab <diego.nehab@gmail.com>2012-04-24 00:47:30 +0800
committerDiego Nehab <diego.nehab@gmail.com>2012-04-24 00:47:30 +0800
commitc2e29537f576a7082247091036c7957479d42b21 (patch)
treefb6a4da9566e8413d824522ca9a7fb94de049b61 /src/inet.h
parent1acf8188cd732de4fd5fcdc016eeab501c86a773 (diff)
downloadluasocket-c2e29537f576a7082247091036c7957479d42b21.tar.gz
luasocket-c2e29537f576a7082247091036c7957479d42b21.tar.bz2
luasocket-c2e29537f576a7082247091036c7957479d42b21.zip
Fixed getpeername/getsockname situation
- Added IPv6 support to getsockname - Simplified getpeername implementation - Added family to return of getsockname and getpeername and added modification to the manual to describe
Diffstat (limited to 'src/inet.h')
-rw-r--r--src/inet.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/inet.h b/src/inet.h
index 0f32ff1..1cbe4f4 100644
--- a/src/inet.h
+++ b/src/inet.h
@@ -24,14 +24,14 @@
24 24
25int inet_open(lua_State *L); 25int inet_open(lua_State *L);
26 26
27const char *inet_trycreate(p_socket ps, int domain, int type); 27const char *inet_trycreate(p_socket ps, int family, int type);
28const char *inet_tryconnect(p_socket ps, const char *address, 28const char *inet_tryconnect(p_socket ps, const char *address,
29 const char *serv, p_timeout tm, struct addrinfo *connecthints); 29 const char *serv, p_timeout tm, struct addrinfo *connecthints);
30const char *inet_trybind(p_socket ps, const char *address, const char *serv, 30const char *inet_trybind(p_socket ps, const char *address, const char *serv,
31 struct addrinfo *bindhints); 31 struct addrinfo *bindhints);
32 32
33int inet_meth_getpeername(lua_State *L, p_socket ps); 33int inet_meth_getpeername(lua_State *L, p_socket ps, int family);
34int inet_meth_getsockname(lua_State *L, p_socket ps); 34int inet_meth_getsockname(lua_State *L, p_socket ps, int family);
35 35
36#ifdef INET_ATON 36#ifdef INET_ATON
37int inet_aton(const char *cp, struct in_addr *inp); 37int inet_aton(const char *cp, struct in_addr *inp);