From ce06df313d8ed2eedcf6ed662efd4086c9a95d46 Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 3 Apr 2009 17:20:57 +0000 Subject: (svn r15941) -Codechange: jonty-comp's wish partly implemented (content server) ;) --- src/network/core/address.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/network/core/address.h') diff --git a/src/network/core/address.h b/src/network/core/address.h index 9515de976..2b5f7444f 100644 --- a/src/network/core/address.h +++ b/src/network/core/address.h @@ -79,13 +79,14 @@ public: * Create a network address based on a unresolved host and port * @param ip the unresolved hostname * @param port the port + * @param family the address family */ - NetworkAddress(const char *hostname = "0.0.0.0", uint16 port = 0) : + NetworkAddress(const char *hostname = "0.0.0.0", uint16 port = 0, int family = AF_INET) : hostname(strdup(hostname)), address_length(0) { memset(&this->address, 0, sizeof(this->address)); - this->address.ss_family = AF_INET; + this->address.ss_family = family; this->SetPort(port); } -- cgit v1.2.3-70-g09d2