Realistic 3D camera system
3D camera system components
Public Types | Public Member Functions | List of all members
asio::ssl::old::stream_service Class Reference

Default service implementation for an SSL stream. More...

#include <stream_service.hpp>

Inheritance diagram for asio::ssl::old::stream_service:
asio::detail::service_base< stream_service > asio::io_service::service asio::detail::noncopyable

Public Types

typedef service_impl_type::impl_type impl_type
 The type of a stream implementation. More...
 

Public Member Functions

 stream_service (asio::io_service &io_service)
 Construct a new stream service for the specified io_service. More...
 
impl_type null () const
 Return a null stream implementation. More...
 
template<typename Stream , typename Context_Service >
void create (impl_type &impl, Stream &next_layer, basic_context< Context_Service > &context)
 Create a new stream implementation. More...
 
template<typename Stream >
void destroy (impl_type &impl, Stream &next_layer)
 Destroy a stream implementation. More...
 
template<typename Stream >
asio::error_code handshake (impl_type &impl, Stream &next_layer, stream_base::handshake_type type, asio::error_code &ec)
 Perform SSL handshaking. More...
 
template<typename Stream , typename HandshakeHandler >
void async_handshake (impl_type &impl, Stream &next_layer, stream_base::handshake_type type, HandshakeHandler handler)
 Start an asynchronous SSL handshake. More...
 
template<typename Stream >
asio::error_code shutdown (impl_type &impl, Stream &next_layer, asio::error_code &ec)
 Shut down SSL on the stream. More...
 
template<typename Stream , typename ShutdownHandler >
void async_shutdown (impl_type &impl, Stream &next_layer, ShutdownHandler handler)
 Asynchronously shut down SSL on the stream. More...
 
template<typename Stream , typename ConstBufferSequence >
std::size_t write_some (impl_type &impl, Stream &next_layer, const ConstBufferSequence &buffers, asio::error_code &ec)
 Write some data to the stream. More...
 
template<typename Stream , typename ConstBufferSequence , typename WriteHandler >
void async_write_some (impl_type &impl, Stream &next_layer, const ConstBufferSequence &buffers, WriteHandler handler)
 Start an asynchronous write. More...
 
template<typename Stream , typename MutableBufferSequence >
std::size_t read_some (impl_type &impl, Stream &next_layer, const MutableBufferSequence &buffers, asio::error_code &ec)
 Read some data from the stream. More...
 
template<typename Stream , typename MutableBufferSequence , typename ReadHandler >
void async_read_some (impl_type &impl, Stream &next_layer, const MutableBufferSequence &buffers, ReadHandler handler)
 Start an asynchronous read. More...
 
template<typename Stream , typename MutableBufferSequence >
std::size_t peek (impl_type &impl, Stream &next_layer, const MutableBufferSequence &buffers, asio::error_code &ec)
 Peek at the incoming data on the stream. More...
 
template<typename Stream >
std::size_t in_avail (impl_type &impl, Stream &next_layer, asio::error_code &ec)
 Determine the amount of data that may be read without blocking. More...
 
- Public Member Functions inherited from asio::detail::service_base< stream_service >
 service_base (asio::io_service &io_service)
 
- Public Member Functions inherited from asio::io_service::service
asio::io_serviceget_io_service ()
 Get the io_service object that owns the service. More...
 

Additional Inherited Members

- Static Public Attributes inherited from asio::detail::service_base< stream_service >
static asio::detail::service_id< stream_service > id
 
- Protected Member Functions inherited from asio::io_service::service
ASIO_DECL service (asio::io_service &owner)
 Constructor. More...
 
virtual ASIO_DECL ~service ()
 Destructor. More...
 

Detailed Description

Default service implementation for an SSL stream.

Definition at line 34 of file stream_service.hpp.

Member Typedef Documentation

The type of a stream implementation.

Definition at line 55 of file stream_service.hpp.

Constructor & Destructor Documentation

asio::ssl::old::stream_service::stream_service ( asio::io_service io_service)
inlineexplicit

Construct a new stream service for the specified io_service.

Definition at line 59 of file stream_service.hpp.

Member Function Documentation

template<typename Stream , typename HandshakeHandler >
void asio::ssl::old::stream_service::async_handshake ( impl_type impl,
Stream &  next_layer,
stream_base::handshake_type  type,
HandshakeHandler  handler 
)
inline

Start an asynchronous SSL handshake.

Definition at line 96 of file stream_service.hpp.

template<typename Stream , typename MutableBufferSequence , typename ReadHandler >
void asio::ssl::old::stream_service::async_read_some ( impl_type impl,
Stream &  next_layer,
const MutableBufferSequence &  buffers,
ReadHandler  handler 
)
inline

Start an asynchronous read.

Definition at line 146 of file stream_service.hpp.

template<typename Stream , typename ShutdownHandler >
void asio::ssl::old::stream_service::async_shutdown ( impl_type impl,
Stream &  next_layer,
ShutdownHandler  handler 
)
inline

Asynchronously shut down SSL on the stream.

Definition at line 112 of file stream_service.hpp.

template<typename Stream , typename ConstBufferSequence , typename WriteHandler >
void asio::ssl::old::stream_service::async_write_some ( impl_type impl,
Stream &  next_layer,
const ConstBufferSequence &  buffers,
WriteHandler  handler 
)
inline

Start an asynchronous write.

Definition at line 129 of file stream_service.hpp.

template<typename Stream , typename Context_Service >
void asio::ssl::old::stream_service::create ( impl_type impl,
Stream &  next_layer,
basic_context< Context_Service > &  context 
)
inline

Create a new stream implementation.

Definition at line 73 of file stream_service.hpp.

template<typename Stream >
void asio::ssl::old::stream_service::destroy ( impl_type impl,
Stream &  next_layer 
)
inline

Destroy a stream implementation.

Definition at line 81 of file stream_service.hpp.

template<typename Stream >
asio::error_code asio::ssl::old::stream_service::handshake ( impl_type impl,
Stream &  next_layer,
stream_base::handshake_type  type,
asio::error_code ec 
)
inline

Perform SSL handshaking.

Definition at line 88 of file stream_service.hpp.

template<typename Stream >
std::size_t asio::ssl::old::stream_service::in_avail ( impl_type impl,
Stream &  next_layer,
asio::error_code ec 
)
inline

Determine the amount of data that may be read without blocking.

Definition at line 162 of file stream_service.hpp.

impl_type asio::ssl::old::stream_service::null ( ) const
inline

Return a null stream implementation.

Definition at line 66 of file stream_service.hpp.

template<typename Stream , typename MutableBufferSequence >
std::size_t asio::ssl::old::stream_service::peek ( impl_type impl,
Stream &  next_layer,
const MutableBufferSequence &  buffers,
asio::error_code ec 
)
inline

Peek at the incoming data on the stream.

Definition at line 154 of file stream_service.hpp.

template<typename Stream , typename MutableBufferSequence >
std::size_t asio::ssl::old::stream_service::read_some ( impl_type impl,
Stream &  next_layer,
const MutableBufferSequence &  buffers,
asio::error_code ec 
)
inline

Read some data from the stream.

Definition at line 137 of file stream_service.hpp.

template<typename Stream >
asio::error_code asio::ssl::old::stream_service::shutdown ( impl_type impl,
Stream &  next_layer,
asio::error_code ec 
)
inline

Shut down SSL on the stream.

Definition at line 104 of file stream_service.hpp.

template<typename Stream , typename ConstBufferSequence >
std::size_t asio::ssl::old::stream_service::write_some ( impl_type impl,
Stream &  next_layer,
const ConstBufferSequence &  buffers,
asio::error_code ec 
)
inline

Write some data to the stream.

Definition at line 120 of file stream_service.hpp.


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