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 

◆ GetLastError()

int SocketEngine::GetLastError ( )

Definition at line 548 of file sockets.cpp.

◆ IgnoreErrno()

bool SocketEngine::IgnoreErrno ( )

◆ Init()

void SocketEngine::Init ( )

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

◆ SetLastError()

void SocketEngine::SetLastError ( int  err)

◆ Shutdown()

void SocketEngine::Shutdown ( )

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

Definition at line 21 of file socketengine.h.

Referenced by GetChangeEvent(), and Init().

◆ Sockets

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

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