A TCP socket class with TLS support implementing the asio::Socket interface.
More...
#include <TlsSocket.h>
A TCP socket class with TLS support implementing the asio::Socket interface.
Synopsis:
auto context = std::make_shared<asio::Context>();
auto tls_context = std::make_shared<asio::TlsContext>(asio::TlsContext::tlsv12_client);
if (!connectEC) {
if (!handshakeEC) {
}
});
}
});
std::shared_ptr< Context > context
boost::asio::ip::tcp::socket socket
A TCP socket class with TLS support implementing the asio::Socket interface.
boost::system::error_code ErrorCode
Definition at line 43 of file TlsSocket.h.
◆ HandshakeCompletionHandler
◆ TlsSocket()
asio::TlsSocket::TlsSocket |
( |
std::shared_ptr< Context > |
io_context, |
|
|
std::shared_ptr< TlsContext > |
tls_context |
|
) |
| |
◆ ~TlsSocket()
asio::TlsSocket::~TlsSocket |
( |
| ) |
|
|
override |
◆ async_handshake()
◆ async_read()
void asio::TlsSocket::async_read |
( |
void * |
buffer, |
|
|
const std::size_t |
buffer_size, |
|
|
const CompletionHandler & |
handler |
|
) |
| |
|
overridevirtual |
◆ async_write()
void asio::TlsSocket::async_write |
( |
const void * |
buffer, |
|
|
const std::size_t |
buffer_size, |
|
|
const CompletionHandler & |
handler |
|
) |
| |
|
overridevirtual |
◆ close()
void asio::TlsSocket::close |
( |
| ) |
|
|
overridevirtual |
◆ is_valid()
bool asio::TlsSocket::is_valid |
( |
| ) |
const |
|
overridevirtual |
The documentation for this class was generated from the following file:
- FMEstable/ReleaseMeVis/Projects/AsynchronousIO/Sources/asio/TlsSocket.h