#include <socketengine.h>
Static Public Member Functions | |
| static void | Init () |
| static void | Shutdown () |
| static void | Change (Socket *s, bool set, SocketFlag flag) |
| static void | Process () |
Static Public Attributes | |
| static std::map< int, Socket * > | Sockets |
Static Private Attributes | |
| static const int | DefaultSize = 2 |
Definition at line 19 of file socketengine.h.
| void SocketEngine::Change | ( | Socket * | s, | |
| bool | set, | |||
| SocketFlag | flag | |||
| ) | [static] |
Set a flag on a socket
| s | The socket | |
| set | Whether setting or unsetting | |
| flag | The flag to set or unset |
Definition at line 41 of file socketengine_epoll.cpp.
References EngineHandle, Socket::flags, Socket::GetFD(), Anope::LastError(), SF_WRITABLE, and stringify().
Referenced by SocketIO::Connect(), SSLSocketIO::Connect(), SSLSocketIO::FinishAccept(), SSLSocketIO::FinishConnect(), Pipe::Pipe(), BinarySocket::ProcessWrite(), BufferedSocket::ProcessWrite(), UDPSocket::ProcessWrite(), TCPSocket::Client::ProcessWrite(), UDPSocket::Reply(), TCPSocket::Client::Reply(), Socket::Socket(), BinarySocket::Write(), BufferedSocket::Write(), and Socket::~Socket().
| void SocketEngine::Init | ( | ) | [static] |
Called to initialize the socket engine
Definition at line 25 of file socketengine_epoll.cpp.
References DefaultSize, EngineHandle, events, and Anope::LastError().
| void SocketEngine::Process | ( | ) | [static] |
Read from sockets and do things
Definition at line 73 of file socketengine_epoll.cpp.
References Config, Anope::CurTime, EngineHandle, events, Socket::flags, Anope::LastError(), Socket::Process(), Socket::ProcessError(), Socket::ProcessRead(), Socket::ProcessWrite(), ServerConfig::ReadTimeout, SF_DEAD, and Sockets.
Referenced by main().
| void SocketEngine::Shutdown | ( | ) | [static] |
Called to shutdown the socket engine
Definition at line 35 of file socketengine_epoll.cpp.
References Sockets.
Referenced by main().
const int SocketEngine::DefaultSize = 2 [static, private] |
Definition at line 21 of file socketengine.h.
Referenced by Init().
std::map< int, Socket * > SocketEngine::Sockets [static] |
Definition at line 24 of file socketengine.h.
Referenced by Pipe::Pipe(), Process(), Shutdown(), Socket::Socket(), HTTPD::~HTTPD(), ModuleProxyScan::~ModuleProxyScan(), Socket::~Socket(), and SSLModule::~SSLModule().
1.7.1