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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user