Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::asio::ssl::old::stream_service Class Reference

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

#include <stream_service.hpp>

Inheritance diagram for boost::asio::ssl::old::stream_service:
Collaboration diagram for boost::asio::ssl::old::stream_service:

Public Types

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

Public Member Functions

 stream_service (boost::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 >
boost::system::error_code handshake (impl_type &impl, Stream &next_layer, stream_base::handshake_type type, boost::system::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 >
boost::system::error_code shutdown (impl_type &impl, Stream &next_layer, boost::system::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, boost::system::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, boost::system::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, boost::system::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, boost::system::error_code &ec)
 Determine the amount of data that may be read without blocking. More...
 
boost::asio::io_serviceget_io_service ()
 Get the io_service object that owns the service. More...
 

Static Public Attributes

static
boost::asio::detail::service_id
< stream_service
id
 

Detailed Description

Default service implementation for an SSL stream.

Member Typedef Documentation

typedef service_impl_type::impl_type boost::asio::ssl::old::stream_service::impl_type

The type of a stream implementation.

Constructor & Destructor Documentation

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

Construct a new stream service for the specified io_service.

Member Function Documentation

template<typename Stream , typename HandshakeHandler >
void boost::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.

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

Start an asynchronous read.

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

Asynchronously shut down SSL on the stream.

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

Start an asynchronous write.

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

Create a new stream implementation.

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

Destroy a stream implementation.

boost::asio::io_service& boost::asio::io_service::service::get_io_service ( )
inherited

Get the io_service object that owns the service.

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

Perform SSL handshaking.

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

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

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

Return a null stream implementation.

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

Peek at the incoming data on the stream.

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

Read some data from the stream.

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

Shut down SSL on the stream.

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

Write some data to the stream.

Member Data Documentation


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