Scale Stack 0.3 Developer Documentation

scalestack::network::local::stream::listener_service Class Reference

#include <listener_service.h>

Inheritance diagram for scalestack::network::local::stream::listener_service:
scalestack::network::listener_service scalestack::kernel::service

Public Member Functions

 listener_service (kernel::module &module, std::auto_ptr< stream_service_provider > stream_service_provider)
 ~listener_service ()
void add_listeners (void)
void add_listeners (const std::string &addresses)

Static Public Member Functions

static void options (kernel::module &module, const std::string &addresses)

Private Member Functions

 listener_service (const listener_service &)
listener_serviceoperator= (const listener_service &)

Detailed Description

This class manages a set of local stream listener sockets.

Definition at line 45 of file listener_service.h.


Constructor & Destructor Documentation

scalestack::network::local::stream::listener_service::listener_service ( kernel::module module,
std::auto_ptr< stream_service_provider stream_service_provider 
)

Constructor for the listener service.

Parameters:
[in] module Module that the service is associated with.
[in] stream_service_provider Stream service provider to associate with this service. Accepted connections from listener objects are added to this stream service provider.

Reimplemented from scalestack::network::listener_service.

Definition at line 63 of file listener_service.cc.

scalestack::network::local::stream::listener_service::~listener_service (  )  [virtual]

Reimplemented from scalestack::network::listener_service.

Definition at line 69 of file listener_service.cc.

scalestack::network::local::stream::listener_service::listener_service ( const listener_service  )  [private]

Don't allow copying of objects.


Member Function Documentation

void scalestack::network::local::stream::listener_service::options ( kernel::module module,
const std::string &  addresses 
) [static]

Add common options for the listener service.

Parameters:
[in] module Module that the service is associated with.
[in] addresses Default addresses to listen on.

Definition at line 54 of file listener_service.cc.

void scalestack::network::local::stream::listener_service::add_listeners ( void   ) 

Add listeners for all addresses specified by the 'addresses' variable in the module options.

Definition at line 74 of file listener_service.cc.

void scalestack::network::local::stream::listener_service::add_listeners ( const std::string &  addresses  ) 

Add listeners for the list of addesses given.

Definition at line 79 of file listener_service.cc.

listener_service& scalestack::network::local::stream::listener_service::operator= ( const listener_service  )  [private]

Don't allow assignment of objects.


The documentation for this class was generated from the following files:
Generated on Thu Feb 17 13:10:23 2011 by  doxygen 1.6.3