1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 14:16:39 +02:00

Rejig of some of the socket stuff. Fixed marking sockets as nonblocking on Windows. Added in a LastError function to keep having to use strerror/GetLastError everywhere.

This commit is contained in:
Adam
2010-09-17 19:20:07 -04:00
parent f71fb6e813
commit 227909e2cf
19 changed files with 106 additions and 127 deletions
@@ -69,10 +69,7 @@ class SocketEngineSelect : public SocketEngineBase
if (sresult == -1)
{
#ifdef WIN32
errno = WSAGetLastError();
#endif
Log() << "SockEngine::Process(): error: " << strerror(errno);
Log() << "SockEngine::Process(): error: " << Anope::LastError();
}
else if (sresult)
{