aboutsummaryrefslogtreecommitdiff
path: root/src/inet.c
diff options
context:
space:
mode:
authorDiego Nehab <diego.nehab@gmail.com>2012-04-23 00:18:45 +0800
committerDiego Nehab <diego.nehab@gmail.com>2012-04-23 00:18:45 +0800
commitf960b3872a668ed1b53bd50c5b6a708367332f3c (patch)
treee82a1b113ed40d70afae36d230b6a6048e1d9fab /src/inet.c
parentf37e0260261f7691246429d227cf7124c291e8b1 (diff)
downloadluasocket-f960b3872a668ed1b53bd50c5b6a708367332f3c.tar.gz
luasocket-f960b3872a668ed1b53bd50c5b6a708367332f3c.tar.bz2
luasocket-f960b3872a668ed1b53bd50c5b6a708367332f3c.zip
Making progress toward a release
Documented headers.lua Update copyright date everywhere Remove RCSID from files Move version back to 2.1 rather than 2.1.1 Fixed url package to support ipv6 hosts Changed "domain" to "family" in tcp and udp structures Implemented getfamily methods
Diffstat (limited to 'src/inet.c')
-rw-r--r--src/inet.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/inet.c b/src/inet.c
index 839fe5f..fd16506 100644
--- a/src/inet.c
+++ b/src/inet.c
@@ -1,8 +1,6 @@
1/*=========================================================================*\ 1/*=========================================================================*\
2* Internet domain functions 2* Internet domain functions
3* LuaSocket toolkit 3* LuaSocket toolkit
4*
5* RCS ID: $Id: inet.c,v 1.28 2005/10/07 04:40:59 diego Exp $
6\*=========================================================================*/ 4\*=========================================================================*/
7#include <stdio.h> 5#include <stdio.h>
8#include <string.h> 6#include <string.h>
@@ -270,8 +268,8 @@ static void inet_pushresolved(lua_State *L, struct hostent *hp)
270/*-------------------------------------------------------------------------*\ 268/*-------------------------------------------------------------------------*\
271* Tries to create a new inet socket 269* Tries to create a new inet socket
272\*-------------------------------------------------------------------------*/ 270\*-------------------------------------------------------------------------*/
273const char *inet_trycreate(p_socket ps, int domain, int type) { 271const char *inet_trycreate(p_socket ps, int family, int type) {
274 return socket_strerror(socket_create(ps, domain, type, 0)); 272 return socket_strerror(socket_create(ps, family, type, 0));
275} 273}
276 274
277/*-------------------------------------------------------------------------*\ 275/*-------------------------------------------------------------------------*\