diff --git a/include/opendht/http.h b/include/opendht/http.h index cc8d5f9ea97fb8995bd5bf127bfd5c809f3d83ed..46b722cef448448fe4ea4400dccd24a60fe6da07 100644 --- a/include/opendht/http.h +++ b/include/opendht/http.h @@ -294,6 +294,7 @@ public: * User action to cancel the Request and call the completion callbacks. */ void cancel(); + void terminate(const asio::error_code& ec); private: using OnCompleteCb = std::function<void()>; @@ -320,8 +321,6 @@ private: void connect(std::vector<asio::ip::tcp::endpoint>&& endpoints, HandlerCb cb = {}); - void terminate(const asio::error_code& ec); - void post(); void handle_request(const asio::error_code& ec);