summaryrefslogtreecommitdiffstats
path: root/source/cBlockingTCPLink.cpp
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-05 17:24:16 +0100
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-05 17:24:16 +0100
commitab95abb6bde0073ebb869624332adf028aac8dd7 (patch)
tree74df0d744fafb12719d3e3934e9d1bfbbb20e72f /source/cBlockingTCPLink.cpp
parentcSocket: added error logging to Bind() failures (diff)
downloadcuberite-ab95abb6bde0073ebb869624332adf028aac8dd7.tar
cuberite-ab95abb6bde0073ebb869624332adf028aac8dd7.tar.gz
cuberite-ab95abb6bde0073ebb869624332adf028aac8dd7.tar.bz2
cuberite-ab95abb6bde0073ebb869624332adf028aac8dd7.tar.lz
cuberite-ab95abb6bde0073ebb869624332adf028aac8dd7.tar.xz
cuberite-ab95abb6bde0073ebb869624332adf028aac8dd7.tar.zst
cuberite-ab95abb6bde0073ebb869624332adf028aac8dd7.zip
Diffstat (limited to 'source/cBlockingTCPLink.cpp')
-rw-r--r--source/cBlockingTCPLink.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/cBlockingTCPLink.cpp b/source/cBlockingTCPLink.cpp
index 1145e0e56..5a36536bc 100644
--- a/source/cBlockingTCPLink.cpp
+++ b/source/cBlockingTCPLink.cpp
@@ -84,7 +84,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, m_Socket.GetLastErrorString());
+ LOGWARN("cTCPLink: Connection to \"%s:%d\" failed (%s)", iAddress, iPort, cSocket::GetErrorString( cSocket::GetLastError() ).c_str() );
CloseSocket();
return false;
}