diff options
Diffstat (limited to 'src/network/core/address.h')
-rw-r--r-- | src/network/core/address.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/network/core/address.h b/src/network/core/address.h index 564d23625..212164c9d 100644 --- a/src/network/core/address.h +++ b/src/network/core/address.h @@ -24,7 +24,7 @@ typedef SmallMap<NetworkAddress, SOCKET, 4> SocketList; class NetworkAddress { private: char hostname[NETWORK_HOSTNAME_LENGTH]; ///< The hostname - size_t address_length; ///< The length of the resolved address + int address_length; ///< The length of the resolved address sockaddr_storage address; ///< The resolved address /** @@ -49,7 +49,7 @@ public: * Create a network address based on a resolved IP and port * @param address the IP address with port */ - NetworkAddress(struct sockaddr_storage &address, size_t address_length) : + NetworkAddress(struct sockaddr_storage &address, int address_length) : address_length(address_length), address(address) { @@ -60,7 +60,7 @@ 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) : + NetworkAddress(sockaddr *address, int address_length) : address_length(address_length) { *this->hostname = '\0'; @@ -131,7 +131,7 @@ public: * Get the (valid) length of the address. * @return the length */ - size_t GetAddressLength() + int GetAddressLength() { /* Resolve it if we didn't do it already */ if (!this->IsResolved()) this->GetAddress(); |