Sirikata
|
ConnectionEventListener listens for events relating to object host connections. More...
#include <ConnectionEventListener.hpp>
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. |
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.
virtual Sirikata::ConnectionEventListener::~ConnectionEventListener | ( | ) | [inline, virtual] |
virtual void Sirikata::ConnectionEventListener::onConnected | ( | const Network::Address & | addr | ) | [inline, virtual] |
Invoked upon connection.
addr | the 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.
addr | the address disconnected from |
requested | indicates whether the user requested the disconnection |
reason | if requested is false, gives a textual description of the reason for the disconnection |
Reimplemented in Sirikata::Graphics::OgreSystem.