Scale Stack 0.3 Developer Documentation

scalestack::network::stream_service_provider Class Reference

#include <stream_service.h>

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

Public Member Functions

 stream_service_provider (kernel::module &module, std::auto_ptr< stream_service > stream_service)
virtual ~stream_service_provider ()
virtual void add_accepted (int file_descriptor, struct sockaddr &peer, socklen_t peer_size)=0

Protected Attributes

std::auto_ptr< stream_service_stream_service
event::handler_service _handler_service

Private Member Functions

 stream_service_provider (const stream_service_provider &)
stream_service_provideroperator= (const stream_service_provider &)

Detailed Description

This is the base class for classes providing a stream service.

Definition at line 75 of file stream_service.h.


Constructor & Destructor Documentation

scalestack::network::stream_service_provider::stream_service_provider ( kernel::module module,
std::auto_ptr< stream_service stream_service 
) [inline]

Definition at line 130 of file stream_service.h.

scalestack::network::stream_service_provider::~stream_service_provider (  )  [inline, virtual]

Definition at line 138 of file stream_service.h.

scalestack::network::stream_service_provider::stream_service_provider ( const stream_service_provider  )  [private]

Don't allow copying of objects.


Member Function Documentation

virtual void scalestack::network::stream_service_provider::add_accepted ( int  file_descriptor,
struct sockaddr &  peer,
socklen_t  peer_size 
) [pure virtual]

Add a new stream that has been accepted.

Parameters:
[in] file_descriptor File descriptor for the new stream.
[in] peer Address information for the remote peer.
[in] peer_size Size of peer structure.

Implemented in scalestack::network::ip::tcp::connection_service, and scalestack::network::local::stream::connection_service.

stream_service_provider& scalestack::network::stream_service_provider::operator= ( const stream_service_provider  )  [private]

Don't allow assignment of objects.


Field Documentation

Definition at line 97 of file stream_service.h.

Definition at line 98 of file stream_service.h.


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