|
My Project 3.7.9
C++ Distributed Hash Table
|


Public Member Functions | |
| Connection (asio::io_context &ctx, const bool ssl=true, std::shared_ptr< log::Logger > l={}) | |
| Connection (asio::io_context &ctx, std::shared_ptr< dht::crypto::Certificate > server_ca, const dht::crypto::Identity &identity, std::shared_ptr< log::Logger > l={}) | |
| unsigned int | id () const |
| bool | is_open () const |
| bool | is_ssl () const |
| void | checkOcsp (bool check=true) |
| void | set_ssl_verification (const std::string &hostname, const asio::ssl::verify_mode verify_mode) |
| asio::streambuf & | input () |
| std::istream & | data () |
| std::string | read_bytes (size_t bytes=0) |
| std::string | read_until (const char delim) |
| void | async_connect (std::vector< asio::ip::tcp::endpoint > &&endpoints, ConnectHandlerCb) |
| void | async_handshake (HandlerCb cb) |
| void | async_write (BytesHandlerCb cb) |
| void | async_read_until (const char *delim, BytesHandlerCb cb) |
| void | async_read_until (char delim, BytesHandlerCb cb) |
| void | async_read (size_t bytes, BytesHandlerCb cb) |
| void | async_read_some (size_t bytes, BytesHandlerCb cb) |
| void | set_keepalive (uint32_t seconds) |
| const asio::ip::address & | local_address () const |
| void | timeout (const std::chrono::seconds &timeout, HandlerCb cb={}) |
| void | close () |
|
inline |