Sirikata
|
This class waits on a service and listens for incoming connections It calls the callback whenever such connections are encountered. More...
#include <StreamListener.hpp>
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 () |
This class waits on a service and listens for incoming connections It calls the callback whenever such connections are encountered.
Sirikata::Network::StreamListener::StreamListener | ( | ) | [protected] |
Sirikata::Network::StreamListener::~StreamListener | ( | ) | [virtual] |
virtual void Sirikata::Network::StreamListener::close | ( | ) | [pure virtual] |
stops listening
Implemented in Sirikata::Network::TCPStreamListener.
Referenced by Sirikata::ObjectHostConnectionManager::shutdown(), and Sirikata::PintoManagerBase::stop().
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.