summaryrefslogtreecommitdiffstats
path: root/src/OSSupport/BlockingTCPLink.cpp
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-01-25 14:51:03 +0100
committerTycho <work.tycho+git@gmail.com>2014-01-25 14:51:03 +0100
commit59b8205f02eb7bf2954acba56fd63f485a30ece5 (patch)
tree55baedf13c6c5cc132ca0f81d6c30c01a434be2d /src/OSSupport/BlockingTCPLink.cpp
parentSwitched cEvent to use strerror_r for error messages (diff)
downloadcuberite-59b8205f02eb7bf2954acba56fd63f485a30ece5.tar
cuberite-59b8205f02eb7bf2954acba56fd63f485a30ece5.tar.gz
cuberite-59b8205f02eb7bf2954acba56fd63f485a30ece5.tar.bz2
cuberite-59b8205f02eb7bf2954acba56fd63f485a30ece5.tar.lz
cuberite-59b8205f02eb7bf2954acba56fd63f485a30ece5.tar.xz
cuberite-59b8205f02eb7bf2954acba56fd63f485a30ece5.tar.zst
cuberite-59b8205f02eb7bf2954acba56fd63f485a30ece5.zip
Diffstat (limited to '')
-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;
}