Main Page   Class Hierarchy   Compound List   File List   Compound Members  

SmartSockets::SocketEventHandler Class Reference

#include <tevent.h>

List of all members.

Public Types

typedef void(SocketEventHandler::* Handler )(SocketEvent &event, sock socketFd, T_IO_CHECK_MODE checkMode)

Public Methods

virtual void onSocket (SocketEvent &event, sock socketFd, T_IO_CHECK_MODE checkMode)


Detailed Description

Base class that has the interface and default implementation for the SocketEvent handlers. Classes inheriting from this will have either an overloaded version of onSocket(), or a method matching the Handler prototype invoked by the dispatcher whenever a SocketEvent is triggered.


Member Typedef Documentation

typedef void(SocketEventHandler::* SmartSockets::SocketEventHandler::Handler)( SocketEvent& event, sock socketFd, T_IO_CHECK_MODE checkMode)
 

Signature for the socket event handler methods.

Parameters:
event  the socket event that registered this handler with the TipcDispatcher.
socketFd  the socket file descriptor that triggered this event handler.
checkMode  variable that determines whether there's data to be read from (T_IO_CHECK_READ) or written to a socket (T_IO_CHECK_WRITE).


Member Function Documentation

virtual void SmartSockets::SocketEventHandler::onSocket SocketEvent   event,
sock    socketFd,
T_IO_CHECK_MODE    checkMode
[inline, virtual]
 

Default implementation for the socket event handler methods.

Parameters:
event  the socket event that registered this handler with the TipcDispatcher.
socketFd  the socket file descriptor that triggered this event handler.
checkMode  variable that determines whether there's data to be read from (T_IO_CHECK_READ) or written to a socket (T_IO_CHECK_WRITE).


The documentation for this class was generated from the following file:
Generated on Fri Jul 14 15:05:55 2006 by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001