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

TNL::NetObjectRPCEvent Class Reference

Event class for handling RPC method invocations on NetObjects. More...

#include <tnlNetObject.h>

Inheritance diagram for TNL::NetObjectRPCEvent:

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

Public Methods

 NetObjectRPCEvent (NetObject *destObject, RPCGuaranteeType type, NetObjectRPCDirection dir)
 Constructor - initializes the base class's data.

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.


Public Attributes

SafePtr< NetObjectmDestObject
 Destination object of the RPC invocation.

NetObjectRPCDirection mRPCDirection
 Direction this RPC should travel.


Detailed Description

Event class for handling RPC method invocations on NetObjects.

When an RPC method is called on the server side NetObject, it is broadcast to all connections that have that NetObject in scope. When an RPC method is called on a ghost (on the client), it is handled by the originating server object.

Definition at line 385 of file tnlNetObject.h.


Member Function Documentation

void TNL::NetObjectRPCEvent::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.

Reimplemented from TNL::RPCEvent.

Definition at line 252 of file netObject.cpp.

References TNL::Functor::dispatch(), TNL::SafePtr< NetObject >::isNull(), and mDestObject.


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