Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

EventProxy Class Reference

#include <EventProxy.h>

Inheritance diagram for EventProxy:

List of all members.


Detailed Description

This class serves as the host for subscribing to remote events. It should never be directly manipulated by the user; all interaction with this class is handled by EventRouter

Definition at line 13 of file EventProxy.h.


Public Member Functions

 EventProxy (int port)
 EventProxy constructor, takes a port to listen on.
virtual ~EventProxy ()
 EventProxy destructor.
bool isActive ()
 Returns true if the EventProxy is still waiting for a connection or is connected.
void sendState (RemoteState::StateType dtype)
 Sends the requested state information to the client robot.
void processEvent (const EventBase &event)
 Forwards any recieved events on to the client robot.
int processData (char *data, int bytes)
 Handles any incoming requests from the client robot.

Protected Member Functions

void handleRemoteRequest (RemoteRequest *info)
 Called by processData, handles an oncoming data request packet.
 EventProxy (EventProxy &)
EventProxyoperator= (const EventProxy &)

Protected Attributes

bool listening

Constructor & Destructor Documentation

EventProxy::EventProxy ( int  port  ) 

EventProxy constructor, takes a port to listen on.

Definition at line 8 of file EventProxy.cc.

EventProxy::~EventProxy (  )  [virtual]

EventProxy destructor.

Definition at line 17 of file EventProxy.cc.

EventProxy::EventProxy ( EventProxy  )  [protected]


Member Function Documentation

bool EventProxy::isActive (  ) 

Returns true if the EventProxy is still waiting for a connection or is connected.

Definition at line 24 of file EventProxy.cc.

void EventProxy::sendState ( RemoteState::StateType  dtype  ) 

Sends the requested state information to the client robot.

Definition at line 167 of file EventProxy.cc.

Referenced by processEvent().

void EventProxy::processEvent ( const EventBase event  )  [virtual]

Forwards any recieved events on to the client robot.

Implements EventListener.

Definition at line 66 of file EventProxy.cc.

int EventProxy::processData ( char *  data,
int  bytes 
) [virtual]

Handles any incoming requests from the client robot.

Implements SocketListener.

Definition at line 28 of file EventProxy.cc.

void EventProxy::handleRemoteRequest ( RemoteRequest info  )  [protected]

Called by processData, handles an oncoming data request packet.

Definition at line 99 of file EventProxy.cc.

Referenced by processData().

EventProxy& EventProxy::operator= ( const EventProxy  )  [protected]


Member Data Documentation

bool EventProxy::listening [protected]

Definition at line 36 of file EventProxy.h.

Referenced by isActive(), and processData().


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

Tekkotsu v4.0
Generated Thu Nov 22 00:58:20 2007 by Doxygen 1.5.4