summaryrefslogtreecommitdiffstats
path: root/source/OSSupport/Socket.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-20 19:29:29 +0200
committermadmaxoft <github@xoft.cz>2013-08-20 19:29:29 +0200
commit40cb30b6a576ecdcf446377b755ed70a87b9be28 (patch)
tree1d4ff05cc3a293ad0091fa45f1359b1a569c5fa1 /source/OSSupport/Socket.cpp
parentStarted work on the cProjectileEntity class. (diff)
downloadcuberite-40cb30b6a576ecdcf446377b755ed70a87b9be28.tar
cuberite-40cb30b6a576ecdcf446377b755ed70a87b9be28.tar.gz
cuberite-40cb30b6a576ecdcf446377b755ed70a87b9be28.tar.bz2
cuberite-40cb30b6a576ecdcf446377b755ed70a87b9be28.tar.lz
cuberite-40cb30b6a576ecdcf446377b755ed70a87b9be28.tar.xz
cuberite-40cb30b6a576ecdcf446377b755ed70a87b9be28.tar.zst
cuberite-40cb30b6a576ecdcf446377b755ed70a87b9be28.zip
Diffstat (limited to '')
-rw-r--r--source/OSSupport/Socket.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/OSSupport/Socket.cpp b/source/OSSupport/Socket.cpp
index f79bdbf47..48b5d704d 100644
--- a/source/OSSupport/Socket.cpp
+++ b/source/OSSupport/Socket.cpp
@@ -74,11 +74,11 @@ void cSocket::CloseSocket()
if (shutdown(m_Socket, SHUT_RDWR) != 0)//SD_BOTH);
{
- LOGWARN("Error on shutting down socket (%s): %s", m_IPString.c_str(), GetLastErrorString().c_str());
+ LOGWARN("Error on shutting down socket %d (%s): %s", m_Socket, m_IPString.c_str(), GetLastErrorString().c_str());
}
if (close(m_Socket) != 0)
{
- LOGWARN("Error closing socket (%s): %s", m_IPString.c_str(), GetLastErrorString().c_str());
+ LOGWARN("Error closing socket %d (%s): %s", m_Socket, m_IPString.c_str(), GetLastErrorString().c_str());
}
#endif // else _WIN32