|
Electroneum
|
#include <net_helper.h>


Public Member Functions | |
| async_blocked_mode_client () | |
| ~async_blocked_mode_client () | |
| bool | shutdown () |
| bool | send (const void *data, size_t sz) |
| Public Member Functions inherited from epee::net_utils::blocked_mode_client | |
| blocked_mode_client () | |
| ~blocked_mode_client () | |
| void | set_ssl (ssl_options_t ssl_options) |
| bool | connect (const std::string &addr, int port, std::chrono::milliseconds timeout) |
| try_connect_result_t | try_connect (const std::string &addr, const std::string &port, std::chrono::milliseconds timeout, epee::net_utils::ssl_support_t ssl_support) |
| bool | connect (const std::string &addr, const std::string &port, std::chrono::milliseconds timeout) |
| void | set_connector (std::function< connect_func > connector) |
| Change the connection routine (proxy, etc.). | |
| bool | disconnect () |
| bool | send (const std::string &buff, std::chrono::milliseconds timeout) |
| bool | send (const void *data, size_t sz) |
| bool | is_connected (bool *ssl=NULL) |
| bool | recv (std::string &buff, std::chrono::milliseconds timeout) |
| bool | recv_n (std::string &buff, int64_t sz, std::chrono::milliseconds timeout) |
| bool | shutdown () |
| boost::asio::io_service & | get_io_service () |
| boost::asio::ip::tcp::socket & | get_socket () |
| uint64_t | get_bytes_sent () const |
| uint64_t | get_bytes_received () const |
Additional Inherited Members | |
| Public Types inherited from epee::net_utils::blocked_mode_client | |
| using | connect_func = boost::unique_future<boost::asio::ip::tcp::socket>(const std::string&, const std::string&, boost::asio::steady_timer&) |
| Protected Member Functions inherited from epee::net_utils::blocked_mode_client | |
| bool | write (const void *data, size_t sz, boost::system::error_code &ec) |
| void | async_write (const void *data, size_t sz, boost::system::error_code &ec) |
| void | async_read (char *buff, size_t sz, boost::asio::detail::transfer_at_least_t transfer_at_least, handler_obj &hndlr) |
| Protected Attributes inherited from epee::net_utils::blocked_mode_client | |
| boost::asio::io_service | m_io_service |
| boost::asio::ssl::context | m_ctx |
| std::shared_ptr< boost::asio::ssl::stream< boost::asio::ip::tcp::socket > > | m_ssl_socket |
| std::function< connect_func > | m_connector |
| ssl_options_t | m_ssl_options |
| bool | m_initialized |
| bool | m_connected |
| boost::asio::steady_timer | m_deadline |
| volatile uint32_t | m_shutdowned |
| std::atomic< uint64_t > | m_bytes_sent |
| std::atomic< uint64_t > | m_bytes_received |
Definition at line 694 of file net_helper.h.
|
inline |
Definition at line 697 of file net_helper.h.

|
inline |
Definition at line 708 of file net_helper.h.
|
inline |
Definition at line 721 of file net_helper.h.

|
inline |
Definition at line 713 of file net_helper.h.
