Main Page   Class Hierarchy   Compound List   File List   Compound Members  

SmartSockets::DecodeCallBack Class Reference

#include <tcallbck.h>

List of all members.

Public Types

typedef void(DecodeCallBack::* Handler )(CallBack< DecodeCallBack > *callBack, void *packet, int4 packetSize, void *origPacket, int4 origPacketSize, TipcConn &connection)

Public Methods

 DecodeCallBack ()
virtual ~DecodeCallBack () throw ()
virtual void onMessage (CallBack< DecodeCallBack > *callBack, void *packet, int4 packetSize, void *origPacket, int4 origPacketSize, TipcConn &connection)


Detailed Description

The decode callback class impelements the CallBack template It can be triggered for decode callbacks.

Upon triggering, onMessage is the default method executed.


Constructor & Destructor Documentation

SmartSockets::DecodeCallBack::DecodeCallBack   [inline]
 

Constructor

virtual SmartSockets::DecodeCallBack::~DecodeCallBack   throw () [inline, virtual]
 

Destructor


Member Function Documentation

virtual void SmartSockets::DecodeCallBack::onMessage CallBack< DecodeCallBack > *    callBack,
void *    packet,
int4    packetSize,
void *    origPacket,
int4    origPacketSize,
TipcConn   connection
[virtual]
 

Default method called when an encode callback is triggered. Prints the relevent callback, connection, message and packet information.

Parameters:
callBack  the callback that was triggered
conn  the connection on which the callback was triggered
origPacket  the former packet
packet  the current packet
origPacketSize  the former packet size


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