MeVisLab Toolbox Reference
|
A TCP socket class with TLS support implementing the asio::Socket interface. More...
#include <TlsSocket.h>
Public Types | |
using | HandshakeCompletionHandler = std::function<void(const ErrorCode&)> |
Public Types inherited from asio::Socket | |
using | CompletionHandler = std::function<void(const ErrorCode&, const std::size_t )> |
Public Member Functions | |
TlsSocket (std::shared_ptr< Context > io_context, std::shared_ptr< TlsContext > tls_context) | |
~TlsSocket () override | |
void | async_handshake (TlsStream::handshake_type handshake_type, const HandshakeCompletionHandler &handler) |
bool | is_valid () const override |
void | async_read (void *buffer, const std::size_t buffer_size, const CompletionHandler &handler) override |
void | async_write (const void *buffer, const std::size_t buffer_size, const CompletionHandler &handler) override |
void | close () override |
Public Member Functions inherited from asio::TcpSocket | |
TcpSocket (std::shared_ptr< Context > context) | |
~TcpSocket () override | |
template<typename ConnectCompletionHandler > | |
void | async_connect (const std::string &host, const unsigned short port, ConnectCompletionHandler &&handler) |
bool | is_open () const |
TcpSocket (const TcpSocket &)=delete | |
TcpSocket & | operator= (const TcpSocket &)=delete |
Public Member Functions inherited from asio::Socket | |
virtual | ~Socket ()=default |
Additional Inherited Members | |
Protected Attributes inherited from asio::TcpSocket | |
std::shared_ptr< Context > | context |
boost::asio::ip::tcp::socket | socket |
A TCP socket class with TLS support implementing the asio::Socket interface.
Synopsis:
Definition at line 43 of file TlsSocket.h.
using asio::TlsSocket::HandshakeCompletionHandler = std::function<void(const ErrorCode&)> |
Definition at line 47 of file TlsSocket.h.
asio::TlsSocket::TlsSocket | ( | std::shared_ptr< Context > | io_context, |
std::shared_ptr< TlsContext > | tls_context ) |
|
override |
void asio::TlsSocket::async_handshake | ( | TlsStream::handshake_type | handshake_type, |
const HandshakeCompletionHandler & | handler ) |
|
overridevirtual |
Reimplemented from asio::TcpSocket.
|
overridevirtual |
Reimplemented from asio::TcpSocket.
|
overridevirtual |
Reimplemented from asio::TcpSocket.
|
overridevirtual |
Reimplemented from asio::TcpSocket.