MEPP2 Project
Public Member Functions | Private Attributes | List of all members
session Class Reference
Inheritance diagram for session:
Inheritance graph
Collaboration diagram for session:
Collaboration graph

Public Member Functions

 session (net::io_context &ioc)
 
void run (char const *host, char const *port, char const *target, int version)
 
void on_resolve (beast::error_code ec, tcp::resolver::results_type results)
 
void on_connect (beast::error_code ec, tcp::resolver::results_type::endpoint_type)
 
void on_write (beast::error_code ec, std::size_t bytes_transferred)
 
void on_read (beast::error_code ec, std::size_t bytes_transferred)
 
 session (net::executor ex, ssl::context &ctx)
 
void run (char const *host, char const *port, char const *target, int version)
 
void on_resolve (beast::error_code ec, tcp::resolver::results_type results)
 
void on_connect (beast::error_code ec, tcp::resolver::results_type::endpoint_type)
 
void on_handshake (beast::error_code ec)
 
void on_write (beast::error_code ec, std::size_t bytes_transferred)
 
void on_read (beast::error_code ec, std::size_t bytes_transferred)
 
void on_shutdown (beast::error_code ec)
 

Private Attributes

tcp::resolver resolver_
 
beast::tcp_stream stream_
 
beast::flat_buffer buffer_
 
http::request< http::empty_body > req_
 
http::response< http::string_body > res_
 
beast::ssl_stream< beast::tcp_stream > stream_
 

Detailed Description

Definition at line 41 of file http_client_async.cpp.

Constructor & Destructor Documentation

◆ session() [1/2]

session::session ( net::io_context &  ioc)
inlineexplicit

Definition at line 53 of file http_client_async.cpp.

◆ session() [2/2]

session::session ( net::executor  ex,
ssl::context &  ctx 
)
inlineexplicit

Definition at line 55 of file http_client_async_ssl.cpp.

Member Function Documentation

◆ on_connect() [1/2]

void session::on_connect ( beast::error_code  ec,
tcp::resolver::results_type::endpoint_type   
)
inline

Definition at line 115 of file http_client_async_ssl.cpp.

Here is the call graph for this function:

◆ on_connect() [2/2]

void session::on_connect ( beast::error_code  ec,
tcp::resolver::results_type::endpoint_type   
)
inline

Definition at line 103 of file http_client_async.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ on_handshake()

void session::on_handshake ( beast::error_code  ec)
inline

Definition at line 129 of file http_client_async_ssl.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ on_read() [1/2]

void session::on_read ( beast::error_code  ec,
std::size_t  bytes_transferred 
)
inline

Definition at line 162 of file http_client_async_ssl.cpp.

Here is the call graph for this function:

◆ on_read() [2/2]

void session::on_read ( beast::error_code  ec,
std::size_t  bytes_transferred 
)
inline

Definition at line 136 of file http_client_async.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ on_resolve() [1/2]

void session::on_resolve ( beast::error_code  ec,
tcp::resolver::results_type  results 
)
inline

Definition at line 96 of file http_client_async_ssl.cpp.

Here is the call graph for this function:

◆ on_resolve() [2/2]

void session::on_resolve ( beast::error_code  ec,
tcp::resolver::results_type  results 
)
inline

Definition at line 84 of file http_client_async.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ on_shutdown()

void session::on_shutdown ( beast::error_code  ec)
inline

Definition at line 185 of file http_client_async_ssl.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ on_write() [1/2]

void session::on_write ( beast::error_code  ec,
std::size_t  bytes_transferred 
)
inline

Definition at line 145 of file http_client_async_ssl.cpp.

Here is the call graph for this function:

◆ on_write() [2/2]

void session::on_write ( beast::error_code  ec,
std::size_t  bytes_transferred 
)
inline

Definition at line 119 of file http_client_async.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ run() [1/2]

void session::run ( char const *  host,
char const *  port,
char const *  target,
int  version 
)
inline

Definition at line 65 of file http_client_async_ssl.cpp.

Here is the call graph for this function:

◆ run() [2/2]

void session::run ( char const *  host,
char const *  port,
char const *  target,
int  version 
)
inline

Definition at line 61 of file http_client_async.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ buffer_

beast::flat_buffer session::buffer_
private

Definition at line 45 of file http_client_async.cpp.

◆ req_

http::request< http::empty_body > session::req_
private

Definition at line 46 of file http_client_async.cpp.

◆ res_

http::response< http::string_body > session::res_
private

Definition at line 47 of file http_client_async.cpp.

◆ resolver_

tcp::resolver session::resolver_
private

Definition at line 43 of file http_client_async.cpp.

◆ stream_ [1/2]

beast::ssl_stream<beast::tcp_stream> session::stream_
private

Definition at line 48 of file http_client_async_ssl.cpp.

◆ stream_ [2/2]

beast::tcp_stream session::stream_
private

Definition at line 44 of file http_client_async.cpp.


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