SchedEventHandler::ServerEventHandler< Source, Scheduler > Class Template Reference

#include <scheduler.h>

List of all members.


Detailed Description

template<typename Source, typename Scheduler>
class SchedEventHandler::ServerEventHandler< Source, Scheduler >

Policy class for events emitted from server type sockets.

This class is used by Scheduler for events handling.

Parameters:
Source Event source object type
Scheduler Scheduler corresponding to the source type

Definition at line 207 of file scheduler.h.


Public Types

typedef Scheduler::SIter SIter
typedef Scheduler::AcceptReq AcceptReq

Static Public Member Functions

static void onEvent (Source *src, SocketEvent evt)
 Event handler function for events emitted from servers.

Member Typedef Documentation

template<typename Source, typename Scheduler>
typedef Scheduler::AcceptReq SchedEventHandler::ServerEventHandler< Source, Scheduler >::AcceptReq
 

Definition at line 210 of file scheduler.h.

template<typename Source, typename Scheduler>
typedef Scheduler::SIter SchedEventHandler::ServerEventHandler< Source, Scheduler >::SIter
 

Definition at line 209 of file scheduler.h.


Member Function Documentation

template<typename Source, typename Scheduler>
static void SchedEventHandler::ServerEventHandler< Source, Scheduler >::onEvent Source *  src,
SocketEvent  evt
[inline, static]
 

Event handler function for events emitted from servers.

Parameters:
Scheduler Scheduler governing this socket
src Source of the event
evt The actual event itself
Note:
This function is called from main event loop and should never be called directly by user code.

Definition at line 222 of file scheduler.h.

References SchedBase::addConnReq(), CHECK_FAIL, SchedBase::instance(), SOCK_ACCEPT, SOCK_ERR, and SOCK_LOST.

Here is the call graph for this function:


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