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