TrinityCore
Loading...
Searching...
No Matches
Trinity::Net::SslStream< WrappedStream > Class Template Reference

#include <SslStream.h>

Public Types

using executor_type = typename WrappedStream::executor_type
 

Public Member Functions

 SslStream (IoContextTcpSocket &&socket, boost::asio::ssl::context &sslContext)
 
 SslStream (boost::asio::io_context &context, boost::asio::ssl::context &sslContext)
 
boost::asio::io_context::executor_type get_executor ()
 
bool is_open () const
 
void close (boost::system::error_code &error)
 
void shutdown (boost::asio::socket_base::shutdown_type what, boost::system::error_code &shutdownError)
 
template<typename ConnectHandlerType >
decltype(auto) async_connect (boost::asio::ip::tcp::endpoint const &endpoint, ConnectHandlerType &&handler)
 
template<typename MutableBufferSequence , typename ReadHandlerType >
decltype(auto) async_read_some (MutableBufferSequence const &buffers, ReadHandlerType &&handler)
 
template<typename ConstBufferSequence , typename WriteHandlerType >
decltype(auto) async_write_some (ConstBufferSequence const &buffers, WriteHandlerType &&handler)
 
template<typename ConstBufferSequence >
std::size_t write_some (ConstBufferSequence const &buffers, boost::system::error_code &error)
 
template<typename WaitHandlerType >
decltype(auto) async_wait (boost::asio::socket_base::wait_type type, WaitHandlerType &&handler)
 
template<typename SettableSocketOption >
void set_option (SettableSocketOption const &option, boost::system::error_code &error)
 
IoContextTcpSocket::endpoint_type remote_endpoint () const
 
template<typename HandshakeHandlerType >
decltype(auto) async_handshake (boost::asio::ssl::stream_base::handshake_type type, HandshakeHandlerType &&handler)
 
void set_server_name (std::string const &serverName, boost::system::error_code &error)
 

Protected Attributes

boost::asio::ssl::stream< WrappedStream > _sslSocket
 

Detailed Description

template<class WrappedStream = IoContextTcpSocket>
class Trinity::Net::SslStream< WrappedStream >

Definition at line 65 of file SslStream.h.

Member Typedef Documentation

◆ executor_type

template<class WrappedStream = IoContextTcpSocket>
using Trinity::Net::SslStream< WrappedStream >::executor_type = typename WrappedStream::executor_type

Definition at line 68 of file SslStream.h.

Constructor & Destructor Documentation

◆ SslStream() [1/2]

template<class WrappedStream = IoContextTcpSocket>
Trinity::Net::SslStream< WrappedStream >::SslStream ( IoContextTcpSocket &&  socket,
boost::asio::ssl::context &  sslContext 
)
inlineexplicit

Definition at line 70 of file SslStream.h.

◆ SslStream() [2/2]

template<class WrappedStream = IoContextTcpSocket>
Trinity::Net::SslStream< WrappedStream >::SslStream ( boost::asio::io_context &  context,
boost::asio::ssl::context &  sslContext 
)
inlineexplicit

Definition at line 75 of file SslStream.h.

Member Function Documentation

◆ async_connect()

template<class WrappedStream = IoContextTcpSocket>
template<typename ConnectHandlerType >
decltype(auto) Trinity::Net::SslStream< WrappedStream >::async_connect ( boost::asio::ip::tcp::endpoint const &  endpoint,
ConnectHandlerType &&  handler 
)
inline

Definition at line 103 of file SslStream.h.

◆ async_handshake()

template<class WrappedStream = IoContextTcpSocket>
template<typename HandshakeHandlerType >
decltype(auto) Trinity::Net::SslStream< WrappedStream >::async_handshake ( boost::asio::ssl::stream_base::handshake_type  type,
HandshakeHandlerType &&  handler 
)
inline

Definition at line 145 of file SslStream.h.

◆ async_read_some()

template<class WrappedStream = IoContextTcpSocket>
template<typename MutableBufferSequence , typename ReadHandlerType >
decltype(auto) Trinity::Net::SslStream< WrappedStream >::async_read_some ( MutableBufferSequence const &  buffers,
ReadHandlerType &&  handler 
)
inline

Definition at line 109 of file SslStream.h.

◆ async_wait()

template<class WrappedStream = IoContextTcpSocket>
template<typename WaitHandlerType >
decltype(auto) Trinity::Net::SslStream< WrappedStream >::async_wait ( boost::asio::socket_base::wait_type  type,
WaitHandlerType &&  handler 
)
inline

Definition at line 127 of file SslStream.h.

◆ async_write_some()

template<class WrappedStream = IoContextTcpSocket>
template<typename ConstBufferSequence , typename WriteHandlerType >
decltype(auto) Trinity::Net::SslStream< WrappedStream >::async_write_some ( ConstBufferSequence const &  buffers,
WriteHandlerType &&  handler 
)
inline

Definition at line 115 of file SslStream.h.

◆ close()

template<class WrappedStream = IoContextTcpSocket>
void Trinity::Net::SslStream< WrappedStream >::close ( boost::system::error_code &  error)
inline

Definition at line 91 of file SslStream.h.

◆ get_executor()

template<class WrappedStream = IoContextTcpSocket>
boost::asio::io_context::executor_type Trinity::Net::SslStream< WrappedStream >::get_executor ( )
inline

Definition at line 81 of file SslStream.h.

◆ is_open()

template<class WrappedStream = IoContextTcpSocket>
bool Trinity::Net::SslStream< WrappedStream >::is_open ( ) const
inline

Definition at line 86 of file SslStream.h.

◆ remote_endpoint()

template<class WrappedStream = IoContextTcpSocket>
IoContextTcpSocket::endpoint_type Trinity::Net::SslStream< WrappedStream >::remote_endpoint ( ) const
inline

Definition at line 138 of file SslStream.h.

◆ set_option()

template<class WrappedStream = IoContextTcpSocket>
template<typename SettableSocketOption >
void Trinity::Net::SslStream< WrappedStream >::set_option ( SettableSocketOption const &  option,
boost::system::error_code &  error 
)
inline

Definition at line 133 of file SslStream.h.

◆ set_server_name()

template<class WrappedStream = IoContextTcpSocket>
void Trinity::Net::SslStream< WrappedStream >::set_server_name ( std::string const &  serverName,
boost::system::error_code &  error 
)
inline

Definition at line 150 of file SslStream.h.

◆ shutdown()

template<class WrappedStream = IoContextTcpSocket>
void Trinity::Net::SslStream< WrappedStream >::shutdown ( boost::asio::socket_base::shutdown_type  what,
boost::system::error_code &  shutdownError 
)
inline

Definition at line 96 of file SslStream.h.

◆ write_some()

template<class WrappedStream = IoContextTcpSocket>
template<typename ConstBufferSequence >
std::size_t Trinity::Net::SslStream< WrappedStream >::write_some ( ConstBufferSequence const &  buffers,
boost::system::error_code &  error 
)
inline

Definition at line 121 of file SslStream.h.

Member Data Documentation

◆ _sslSocket

template<class WrappedStream = IoContextTcpSocket>
boost::asio::ssl::stream<WrappedStream> Trinity::Net::SslStream< WrappedStream >::_sslSocket
protected

Definition at line 157 of file SslStream.h.


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