summaryrefslogtreecommitdiffstats
path: root/src/OSSupport/BlockingTCPLink.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-01-25 19:43:00 +0100
committerMattes D <github@xoft.cz>2014-01-25 19:43:00 +0100
commitc8be9b5b1aa152e61ca61870c0f95313571e1918 (patch)
tree93be710bd8884e526ff719b4302fd2eb4569b66c /src/OSSupport/BlockingTCPLink.cpp
parentComm logging is available in both Debug and Release modes. (diff)
parentSwitched cEvent to GetOSErrorString (diff)
downloadcuberite-c8be9b5b1aa152e61ca61870c0f95313571e1918.tar
cuberite-c8be9b5b1aa152e61ca61870c0f95313571e1918.tar.gz
cuberite-c8be9b5b1aa152e61ca61870c0f95313571e1918.tar.bz2
cuberite-c8be9b5b1aa152e61ca61870c0f95313571e1918.tar.lz
cuberite-c8be9b5b1aa152e61ca61870c0f95313571e1918.tar.xz
cuberite-c8be9b5b1aa152e61ca61870c0f95313571e1918.tar.zst
cuberite-c8be9b5b1aa152e61ca61870c0f95313571e1918.zip
Diffstat (limited to 'src/OSSupport/BlockingTCPLink.cpp')
-rw-r--r--src/OSSupport/BlockingTCPLink.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/OSSupport/BlockingTCPLink.cpp b/src/OSSupport/BlockingTCPLink.cpp
index 08aec0c65..af50eda5d 100644
--- a/src/OSSupport/BlockingTCPLink.cpp
+++ b/src/OSSupport/BlockingTCPLink.cpp
@@ -2,7 +2,7 @@
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
#include "BlockingTCPLink.h"
-
+#include "Errors.h"
@@ -75,7 +75,7 @@ bool cBlockingTCPLink::Connect(const char * iAddress, unsigned int iPort)
server.sin_port = htons( (unsigned short)iPort);
if (connect(m_Socket, (struct sockaddr *)&server, sizeof(server)))
{
- LOGWARN("cTCPLink: Connection to \"%s:%d\" failed (%s)", iAddress, iPort, cSocket::GetErrorString( cSocket::GetLastError() ).c_str() );
+ LOGWARN("cTCPLink: Connection to \"%s:%d\" failed (%s)", iAddress, iPort,GetOSErrorString( cSocket::GetLastError() ).c_str() );
CloseSocket();
return false;
}