Sirikata
Public Member Functions
Sirikata::ConnectionEventListener Class Reference

ConnectionEventListener listens for events relating to object host connections. More...

#include <ConnectionEventListener.hpp>

Inheritance diagram for Sirikata::ConnectionEventListener:

List of all members.

Public Member Functions

virtual ~ConnectionEventListener ()
virtual void onConnected (const Network::Address &addr)
 Invoked upon connection.
virtual void onDisconnected (const Network::Address &addr, bool requested, const String &reason)
 Invoked upon disconnection.

Detailed Description

ConnectionEventListener listens for events relating to object host connections.

This is useful for monitoring the health of the underlying system without directly exposing the details.


Constructor & Destructor Documentation

virtual Sirikata::ConnectionEventListener::~ConnectionEventListener ( ) [inline, virtual]

Member Function Documentation

virtual void Sirikata::ConnectionEventListener::onConnected ( const Network::Address addr) [inline, virtual]

Invoked upon connection.

Parameters:
addrthe address connected to

Reimplemented in Sirikata::Graphics::OgreSystem.

virtual void Sirikata::ConnectionEventListener::onDisconnected ( const Network::Address addr,
bool  requested,
const String &  reason 
) [inline, virtual]

Invoked upon disconnection.

Parameters:
addrthe address disconnected from
requestedindicates whether the user requested the disconnection
reasonif requested is false, gives a textual description of the reason for the disconnection

Reimplemented in Sirikata::Graphics::OgreSystem.


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