Sirikata
Public Member Functions | Protected Member Functions
Sirikata::Network::StreamListener Class Reference

This class waits on a service and listens for incoming connections It calls the callback whenever such connections are encountered. More...

#include <StreamListener.hpp>

Inheritance diagram for Sirikata::Network::StreamListener:

List of all members.

Public Member Functions

virtual bool listen (const Address &addy, const Stream::SubstreamCallback &newStreamCallback)=0
 subclasses will expose these methods with similar arguments + protocol specific args
virtual String listenAddressName () const =0
 returns thea name of the computer followed by a colon and then the service being listened on
virtual Address listenAddress () const =0
 returns thea name of the computer followed by a colon and then the service being listened on
virtual void close ()=0
 stops listening
virtual ~StreamListener ()

Protected Member Functions

 StreamListener ()

Detailed Description

This class waits on a service and listens for incoming connections It calls the callback whenever such connections are encountered.


Constructor & Destructor Documentation

Sirikata::Network::StreamListener::StreamListener ( ) [protected]
Sirikata::Network::StreamListener::~StreamListener ( ) [virtual]

Member Function Documentation

virtual void Sirikata::Network::StreamListener::close ( ) [pure virtual]
virtual bool Sirikata::Network::StreamListener::listen ( const Address addy,
const Stream::SubstreamCallback newStreamCallback 
) [pure virtual]

subclasses will expose these methods with similar arguments + protocol specific args

Implemented in Sirikata::Network::TCPStreamListener.

Referenced by Sirikata::TCPSpaceNetwork::finishListen(), Sirikata::ObjectHostConnectionManager::listen(), and Sirikata::PintoManagerBase::PintoManagerBase().

virtual Address Sirikata::Network::StreamListener::listenAddress ( ) const [pure virtual]

returns thea name of the computer followed by a colon and then the service being listened on

Implemented in Sirikata::Network::TCPStreamListener.

virtual String Sirikata::Network::StreamListener::listenAddressName ( ) const [pure virtual]

returns thea name of the computer followed by a colon and then the service being listened on

Implemented in Sirikata::Network::TCPStreamListener.


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