Anope IRC Services  Version 2.0
Static Public Member Functions | Static Public Attributes | Static Private Attributes
SocketEngine Class Reference

#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 int GetLastError ()
 
static void SetLastError (int)
 
static bool IgnoreErrno ()
 

Static Public Attributes

static std::map< int, Socket * > Sockets
 

Static Private Attributes

static const int DefaultSize = 2
 

Detailed Description

Definition at line 19 of file socketengine.h.

Member Function Documentation

◆ Change()

void SocketEngine::Change ( Socket s,
bool  set,
SocketFlag  flag 
)
static

◆ GetLastError()

int SocketEngine::GetLastError ( )
static

Definition at line 548 of file sockets.cpp.

◆ IgnoreErrno()

bool SocketEngine::IgnoreErrno ( )
static

◆ Init()

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().

Referenced by GetChangeEvent(), and Anope::Init().

◆ Process()

void SocketEngine::Process ( )
static

◆ SetLastError()

void SocketEngine::SetLastError ( int  err)
static

◆ Shutdown()

void SocketEngine::Shutdown ( )
static

Called to shutdown the socket engine

Definition at line 35 of file socketengine_epoll.cpp.

References Sockets.

Referenced by GetChangeEvent(), and main().

Field Documentation

◆ DefaultSize

const int SocketEngine::DefaultSize = 2
staticprivate

Definition at line 21 of file socketengine.h.

Referenced by GetChangeEvent(), and Init().

◆ Sockets

std::map< int, Socket * > SocketEngine::Sockets
static

The documentation for this class was generated from the following files: