Now showing proper error messages when sockets fail :)
Crossplatform GetLastError function in cSocket git-svn-id: http://mc-server.googlecode.com/svn/trunk@234 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -1832,7 +1832,7 @@ void cClientHandle::ReceiveThread(void *lpParam)
|
||||
}
|
||||
else
|
||||
{
|
||||
LOGERROR("Something went wrong during PacketID 0x%02x (%s)", temp, cSocket::GetLastErrorString());
|
||||
LOGERROR("Something went wrong during PacketID 0x%02x (%s)", temp, cSocket::GetErrorString( cSocket::GetLastError() ).c_str());
|
||||
LOG("CLIENT %s DISCONNECTED", self->m_Username.c_str());
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user