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

#include <SslStream.h>

Public Member Functions

 SslStream (IoContextTcpSocket &&socket, boost::asio::ssl::context &sslContext)
 
 SslStream (boost::asio::io_context &context, boost::asio::ssl::context &sslContext)
 
void close (boost::system::error_code &error)
 
void shutdown (boost::asio::socket_base::shutdown_type what, boost::system::error_code &shutdownError)
 
template<typename MutableBufferSequence , typename ReadHandlerType >
void async_read_some (MutableBufferSequence const &buffers, ReadHandlerType &&handler)
 
template<typename ConstBufferSequence , typename WriteHandlerType >
void 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 >
void 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 >
void async_handshake (boost::asio::ssl::stream_base::handshake_type type, HandshakeHandlerType &&handler)
 

Protected Attributes

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

Detailed Description

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

Definition at line 59 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 62 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 67 of file SslStream.h.

Member Function Documentation

◆ async_handshake()

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

Definition at line 121 of file SslStream.h.

◆ async_read_some()

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

Definition at line 85 of file SslStream.h.

◆ async_wait()

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

Definition at line 103 of file SslStream.h.

◆ async_write_some()

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

Definition at line 91 of file SslStream.h.

◆ close()

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

Definition at line 73 of file SslStream.h.

◆ remote_endpoint()

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

Definition at line 114 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 109 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 78 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 97 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 127 of file SslStream.h.


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