Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

EventProxy Class Reference

#include <EventProxy.h>

Inheritance diagram for EventProxy:

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.

List of all members.

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 10 of file EventProxy.cc.

EventProxy::~EventProxy (  )  [virtual]

EventProxy destructor.

Definition at line 18 of file EventProxy.cc.

EventProxy::EventProxy ( EventProxy  )  [protected]

Member Function Documentation

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

Called by processData, handles an oncoming data request packet.

Definition at line 102 of file EventProxy.cc.

Referenced by processData().

bool EventProxy::isActive (  ) 

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

Definition at line 23 of file EventProxy.cc.

EventProxy& EventProxy::operator= ( const EventProxy  )  [protected]
int EventProxy::processData ( char *  data,
int  bytes 
) [virtual]

Handles any incoming requests from the client robot.

Implements SocketListener.

Definition at line 27 of file EventProxy.cc.

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

Forwards any recieved events on to the client robot.

Implements EventListener.

Definition at line 65 of file EventProxy.cc.

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

Sends the requested state information to the client robot.

Definition at line 171 of file EventProxy.cc.

Referenced by processEvent().


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 v5.1CVS
Generated Mon May 9 04:59:07 2016 by Doxygen 1.6.3