Scale Stack 0.3 Developer Documentation

scalestack::network::local::stream::connection_service Class Reference

#include <connection_service.h>

Inheritance diagram for scalestack::network::local::stream::connection_service:
scalestack::network::stream_service_provider scalestack::kernel::service

Public Member Functions

 connection_service (kernel::module &module, std::auto_ptr< stream_service > stream_service)
 ~connection_service ()
void add_accepted (int file_descriptor, struct sockaddr &peer, socklen_t peer_size)
void add_connections (void)
void add_connections (const std::string &addresses)

Static Public Member Functions

static void options (kernel::module &module, const char *addresses)

Private Member Functions

 connection_service (const connection_service &)
connection_serviceoperator= (const connection_service &)

Detailed Description

This class manages a set of local streams.

Definition at line 46 of file connection_service.h.


Constructor & Destructor Documentation

scalestack::network::local::stream::connection_service::connection_service ( kernel::module module,
std::auto_ptr< stream_service stream_service 
)

Constructor for the connection service.

Parameters:
[in] module Module that the service is associated with.
[in] stream_service Stream service to associate with this service. This providers the generic stream objects to pair with stream providers.

Definition at line 55 of file connection_service.cc.

scalestack::network::local::stream::connection_service::~connection_service (  ) 

Definition at line 61 of file connection_service.cc.

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

Don't allow copying of objects.


Member Function Documentation

void scalestack::network::local::stream::connection_service::options ( kernel::module module,
const char *  addresses 
) [static]

Add common options for local stream connections.

Parameters:
[in] module Module that the service is associated with.
[in] addresses Default address list to use.

Definition at line 49 of file connection_service.cc.

void scalestack::network::local::stream::connection_service::add_accepted ( int  file_descriptor,
struct sockaddr &  peer,
socklen_t  peer_size 
) [virtual]
void scalestack::network::local::stream::connection_service::add_connections ( void   ) 

Add connections specified by the 'addresses' variable in the module options and connect to those addresses.

Definition at line 78 of file connection_service.cc.

void scalestack::network::local::stream::connection_service::add_connections ( const std::string &  addresses  ) 

Add connections specified by the given 'addresses' parameter.

Definition at line 83 of file connection_service.cc.

connection_service& scalestack::network::local::stream::connection_service::operator= ( const connection_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