roar
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Roar::WebsocketClient::Implementation Struct Reference
Collaboration diagram for Roar::WebsocketClient::Implementation:

Public Member Functions

 Implementation ()
 
void onConnect (boost::beast::error_code ec, boost::asio::ip::tcp::resolver::results_type::endpoint_type const &ep, std::chrono::seconds timeout, std::string passedHost, std::shared_ptr< WebsocketClient > client)
 
void performSslHandshake (std::string const &origHost, std::shared_ptr< WebsocketClient > client)
 
void onSslHandshake (boost::beast::error_code ec, std::shared_ptr< WebsocketClient > client)
 
void performWebsocketHandshake (std::shared_ptr< WebsocketClient > client)
 
void onWebsocketHandshake (boost::beast::error_code ec)
 

Public Attributes

boost::beast::flat_buffer buffer
 
std::function< void(Error &&)> onError
 
std::string host
 
std::unordered_map< boost::beast::http::field, std::string > handshakeHeaders
 
std::string path
 
std::function< void()> onConnectComplete
 

Constructor & Destructor Documentation

◆ Implementation()

Roar::WebsocketClient::Implementation::Implementation ( )
inline

Member Function Documentation

◆ onConnect()

void Roar::WebsocketClient::Implementation::onConnect ( boost::beast::error_code  ec,
boost::asio::ip::tcp::resolver::results_type::endpoint_type const &  ep,
std::chrono::seconds  timeout,
std::string  passedHost,
std::shared_ptr< WebsocketClient client 
)
inline

◆ onSslHandshake()

void Roar::WebsocketClient::Implementation::onSslHandshake ( boost::beast::error_code  ec,
std::shared_ptr< WebsocketClient client 
)
inline

◆ onWebsocketHandshake()

void Roar::WebsocketClient::Implementation::onWebsocketHandshake ( boost::beast::error_code  ec)
inline

◆ performSslHandshake()

void Roar::WebsocketClient::Implementation::performSslHandshake ( std::string const &  origHost,
std::shared_ptr< WebsocketClient client 
)
inline

◆ performWebsocketHandshake()

void Roar::WebsocketClient::Implementation::performWebsocketHandshake ( std::shared_ptr< WebsocketClient client)
inline

Member Data Documentation

◆ buffer

boost::beast::flat_buffer Roar::WebsocketClient::Implementation::buffer

◆ handshakeHeaders

std::unordered_map<boost::beast::http::field, std::string> Roar::WebsocketClient::Implementation::handshakeHeaders

◆ host

std::string Roar::WebsocketClient::Implementation::host

◆ onConnectComplete

std::function<void()> Roar::WebsocketClient::Implementation::onConnectComplete

◆ onError

std::function<void(Error&&)> Roar::WebsocketClient::Implementation::onError

◆ path

std::string Roar::WebsocketClient::Implementation::path

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