Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

TNL::RPCEvent Class Reference

Base class for RPC events. More...

#include <tnlRPC.h>

Inheritance diagram for TNL::RPCEvent:

TNL::NetEvent TNL::Object TNL::NetObjectRPCEvent List of all members.

Public Methods

 RPCEvent (RPCGuaranteeType gType, RPCDirection dir)
 Constructor call from within the rpcSomething method generated by the TNL_IMPLEMENT_RPC macro.

void pack (EventConnection *ps, BitStream *bstream)
 Pack is called on the origin side of the connection to write an event's data into a packet.

void unpack (EventConnection *ps, BitStream *bstream)
 Unpack is called on the destination side of the connection to read an event's data out of a packet.

void process (EventConnection *ps)
 Process is called to process the event data when it has been unpacked.


Detailed Description

Base class for RPC events.

All declared RPC methods create subclasses of RPCEvent to send data across the wire

Definition at line 170 of file tnlRPC.h.


Member Function Documentation

void TNL::RPCEvent::process EventConnection   ps [virtual]
 

Process is called to process the event data when it has been unpacked.

For a guaranteed, ordered event, process is called only once all prior events have been received and processed. For unguaranteed events, process is called immediately after unpack.

Implements TNL::NetEvent.

Reimplemented in TNL::NetObjectRPCEvent.

Definition at line 51 of file rpc.cpp.

References TNL::Functor::dispatch().


The documentation for this class was generated from the following files:
Generated on Thu Aug 18 16:03:39 2005 for Robin Hood: Thieves & Knights by doxygen1.2.18