libmoost
moost::io::async_stream_forwarder Class Reference

#include <async_stream_forwarder.hpp>

Collaboration diagram for moost::io::async_stream_forwarder:

List of all members.

Public Types

typedef helper::native_io_t native_io_t
typedef helper::async_stream_t async_stream_t

Public Member Functions

 async_stream_forwarder (boost::shared_ptr< boost::asio::io_service > ios)
 async_stream_forwarder (boost::shared_ptr< boost::asio::io_service > ios, native_io_t input, bool dup_input=true)
 ~async_stream_forwarder ()
void assign (native_io_t input, bool dup_input=true)
template<typename HandlerT >
void read_async (void *data, size_t size, HandlerT handler)
void close ()

Private Member Functions

void input_thread () const

Private Attributes

boost::shared_ptr
< boost::asio::io_service > 
m_ios
boost::shared_ptr< boost::thread > m_input_thread
detail::forwarding_loop m_loop
native_io_t m_in
native_io_t m_pipe_write
async_stream_t m_input

Detailed Description

Definition at line 62 of file async_stream_forwarder.hpp.


Member Typedef Documentation


Constructor & Destructor Documentation

moost::io::async_stream_forwarder::async_stream_forwarder ( boost::shared_ptr< boost::asio::io_service >  ios) [inline]

Definition at line 68 of file async_stream_forwarder.hpp.

moost::io::async_stream_forwarder::async_stream_forwarder ( boost::shared_ptr< boost::asio::io_service >  ios,
native_io_t  input,
bool  dup_input = true 
) [inline]

Definition at line 74 of file async_stream_forwarder.hpp.

Here is the call graph for this function:

Definition at line 81 of file async_stream_forwarder.hpp.

Here is the call graph for this function:


Member Function Documentation

void moost::io::async_stream_forwarder::assign ( native_io_t  input,
bool  dup_input = true 
) [inline]

Definition at line 94 of file async_stream_forwarder.hpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 146 of file async_stream_forwarder.hpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void moost::io::async_stream_forwarder::input_thread ( ) const [inline, private]

Definition at line 160 of file async_stream_forwarder.hpp.

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename HandlerT >
void moost::io::async_stream_forwarder::read_async ( void *  data,
size_t  size,
HandlerT  handler 
) [inline]

Definition at line 141 of file async_stream_forwarder.hpp.


Member Data Documentation

boost::shared_ptr<boost::thread> moost::io::async_stream_forwarder::m_input_thread [private]

Definition at line 170 of file async_stream_forwarder.hpp.

boost::shared_ptr<boost::asio::io_service> moost::io::async_stream_forwarder::m_ios [private]

Definition at line 169 of file async_stream_forwarder.hpp.


The documentation for this class was generated from the following file: