Realistic 3D camera system
3D camera system components
|
Default service implementation for an SSL stream. More...
#include <stream_service.hpp>
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_service & | get_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... | |
Default service implementation for an SSL stream.
Definition at line 34 of file stream_service.hpp.
The type of a stream implementation.
Definition at line 55 of file stream_service.hpp.
|
inlineexplicit |
Construct a new stream service for the specified io_service.
Definition at line 59 of file stream_service.hpp.
|
inline |
Start an asynchronous SSL handshake.
Definition at line 96 of file stream_service.hpp.
|
inline |
Start an asynchronous read.
Definition at line 146 of file stream_service.hpp.
|
inline |
Asynchronously shut down SSL on the stream.
Definition at line 112 of file stream_service.hpp.
|
inline |
Start an asynchronous write.
Definition at line 129 of file stream_service.hpp.
|
inline |
Create a new stream implementation.
Definition at line 73 of file stream_service.hpp.
|
inline |
Destroy a stream implementation.
Definition at line 81 of file stream_service.hpp.
|
inline |
Perform SSL handshaking.
Definition at line 88 of file stream_service.hpp.
|
inline |
Determine the amount of data that may be read without blocking.
Definition at line 162 of file stream_service.hpp.
|
inline |
Return a null stream implementation.
Definition at line 66 of file stream_service.hpp.
|
inline |
Peek at the incoming data on the stream.
Definition at line 154 of file stream_service.hpp.
|
inline |
Read some data from the stream.
Definition at line 137 of file stream_service.hpp.
|
inline |
Shut down SSL on the stream.
Definition at line 104 of file stream_service.hpp.
|
inline |
Write some data to the stream.
Definition at line 120 of file stream_service.hpp.