diff options
author | rubidium <rubidium@openttd.org> | 2009-04-02 18:35:59 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-04-02 18:35:59 +0000 |
commit | 804370d964486ab0ac51a7402e6b30fced5d31af (patch) | |
tree | 4f4462080d78106349d22df1edc1ff6cd3edef1b /src/network/core/tcp_content.cpp | |
parent | b2e79417833a04bfe5d486e30e5b8fc4a5aec8bb (diff) | |
download | openttd-804370d964486ab0ac51a7402e6b30fced5d31af.tar.xz |
(svn r15914) -Codechange: let the content handling make use of NetworkAddress.
Diffstat (limited to 'src/network/core/tcp_content.cpp')
-rw-r--r-- | src/network/core/tcp_content.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/network/core/tcp_content.cpp b/src/network/core/tcp_content.cpp index 7596cced8..889f627c7 100644 --- a/src/network/core/tcp_content.cpp +++ b/src/network/core/tcp_content.cpp @@ -84,9 +84,9 @@ bool NetworkContentSocketHandler::HandlePacket(Packet *p) default: if (this->HasClientQuit()) { - DEBUG(net, 0, "[tcp/content] received invalid packet type %d from %s:%d", type, inet_ntoa(this->client_addr.sin_addr), ntohs(this->client_addr.sin_port)); + DEBUG(net, 0, "[tcp/content] received invalid packet type %d from %s", type, this->client_addr.GetAddressAsString()); } else { - DEBUG(net, 0, "[tcp/content] received illegal packet from %s:%d", inet_ntoa(this->client_addr.sin_addr), ntohs(this->client_addr.sin_port)); + DEBUG(net, 0, "[tcp/content] received illegal packet from %s", this->client_addr.GetAddressAsString()); } return false; } @@ -114,8 +114,8 @@ void NetworkContentSocketHandler::Recv_Packets() */ #define DEFINE_UNAVAILABLE_CONTENT_RECEIVE_COMMAND(type) \ bool NetworkContentSocketHandler::NetworkPacketReceive_## type ##_command(Packet *p) { \ - DEBUG(net, 0, "[tcp/content] received illegal packet type %d from %s:%d", \ - type, inet_ntoa(this->client_addr.sin_addr), ntohs(this->client_addr.sin_port)); \ + DEBUG(net, 0, "[tcp/content] received illegal packet type %d from %s", \ + type, this->client_addr.GetAddressAsString()); \ return false; \ } |