Sirikata
Public Member Functions
Sirikata::SpaceNetwork::ReceiveListener Class Reference

The Network::ReceiveListener interface should be implemented by the object receiving data from the network. More...

#include <SpaceNetwork.hpp>

Inheritance diagram for Sirikata::SpaceNetwork::ReceiveListener:

List of all members.

Public Member Functions

virtual ~ReceiveListener ()
virtual void networkReceivedConnection (ReceiveStream *strm)=0
 Invoked when a new connection is received from a remote host.
virtual void networkReceivedData (ReceiveStream *strm)=0
 Invoked by the Network when data has been received on a queue that was previously empty, i.e.

Detailed Description

The Network::ReceiveListener interface should be implemented by the object receiving data from the network.

The listener must actively pull data from the Network queues, but the Listener interface allows this process to be event driven by notifying the object when new data has been received.


Constructor & Destructor Documentation

virtual Sirikata::SpaceNetwork::ReceiveListener::~ReceiveListener ( ) [inline, virtual]

Member Function Documentation

virtual void Sirikata::SpaceNetwork::ReceiveListener::networkReceivedConnection ( ReceiveStream strm) [pure virtual]

Invoked when a new connection is received from a remote host.

This should be used as an indication that a receive queue should be allocated and serviced for that connection.

Implemented in Sirikata::FairServerMessageReceiver, and Sirikata::ServerMessageReceiver.

Referenced by Sirikata::TCPSpaceNetwork::getNewReceiveStream().

virtual void Sirikata::SpaceNetwork::ReceiveListener::networkReceivedData ( ReceiveStream strm) [pure virtual]

Invoked by the Network when data has been received on a queue that was previously empty, i.e.

when data is received taht causes front(from) to change.

Implemented in Sirikata::FairServerMessageReceiver, and Sirikata::ServerMessageReceiver.

Referenced by Sirikata::TCPSpaceNetwork::bytesReceivedCallback().


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