#include <net_helper.h>
|
| | async_blocked_mode_client () |
| |
| | ~async_blocked_mode_client () |
| |
| bool | shutdown () |
| |
| bool | send (const void *data, size_t sz) |
| |
| | 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.) More...
|
| |
| 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 |
| |
Definition at line 694 of file net_helper.h.
◆ async_blocked_mode_client()
| epee::net_utils::async_blocked_mode_client::async_blocked_mode_client |
( |
| ) |
|
|
inline |
Definition at line 697 of file net_helper.h.
703 m_send_deadline.expires_at(boost::posix_time::pos_infin);
706 check_send_deadline();
boost::asio::io_service m_io_service
◆ ~async_blocked_mode_client()
| epee::net_utils::async_blocked_mode_client::~async_blocked_mode_client |
( |
| ) |
|
|
inline |
◆ send()
| bool epee::net_utils::async_blocked_mode_client::send |
( |
const void * |
data, |
|
|
size_t |
sz |
|
) |
| |
|
inline |
Definition at line 721 of file net_helper.h.
747 boost::system::error_code ec;
749 size_t writen =
write(data, sz, ec);
757 m_send_deadline.expires_at(boost::posix_time::pos_infin);
761 catch(
const boost::system::system_error& er)
763 LOG_ERROR(
"Some problems at connect, message: " << er.what());
bool write(const void *data, size_t sz, boost::system::error_code &ec)
◆ shutdown()
| bool epee::net_utils::async_blocked_mode_client::shutdown |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file:
- /home/abuild/rpmbuild/BUILD/electroneum-5.0.0.4/contrib/epee/include/net/net_helper.h