(svn r15926) -Codechange: make the broadcast IP list less AF dependent.

This commit is contained in:
rubidium
2009-04-03 11:02:41 +00:00
parent 47602d7b60
commit 11723c40b2
7 changed files with 43 additions and 24 deletions

View File

@@ -63,6 +63,18 @@ public:
{
}
/**
* Create a network address based on a resolved IP and port
* @param address the IP address with port
*/
NetworkAddress(sockaddr *address, size_t address_length) :
hostname(NULL),
address_length(address_length)
{
memset(&this->address, 0, sizeof(this->address));
memcpy(&this->address, address, address_length);
}
/**
* Create a network address based on a unresolved host and port
* @param ip the unresolved hostname