#include <connection_service.h>
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_service & | operator= (const connection_service &) |
This class manages a set of local streams.
Definition at line 46 of file connection_service.h.
| scalestack::network::local::stream::connection_service::connection_service | ( | kernel::module & | module, | |
| std::auto_ptr< stream_service > | stream_service | |||
| ) |
Constructor for the connection service.
| [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.
| void scalestack::network::local::stream::connection_service::options | ( | kernel::module & | module, | |
| const char * | addresses | |||
| ) | [static] |
Add common options for local stream connections.
| [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] |
See stream_service_provider::add_accepted().
Implements scalestack::network::stream_service_provider.
Definition at line 66 of file connection_service.cc.
| 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.
1.6.3