1
0
mirror of https://github.com/anope/anope.git synced 2026-06-28 11:26:37 +02:00

Made Anope able to process normally when disconnected from the uplink and not sleep(), enable usage of non-blocking connect() and default all sockets to non blocking mode. Some cleanup to m_ssl and some cleanup to main.cpp.

This commit is contained in:
Adam
2011-05-21 04:57:27 -04:00
parent 7e5727288d
commit 115f94bfc2
30 changed files with 547 additions and 469 deletions
+9
View File
@@ -843,6 +843,15 @@ void Anope::Unhex(const Anope::string &src, char *dest)
dest[destpos] = 0;
}
int Anope::LastErrorCode()
{
#ifndef _WIN32
return errno;
#else
return GetLastError();
#endif
}
const Anope::string Anope::LastError()
{
#ifndef _WIN32