@@ -34,9 +34,6 @@ namespace libp2p::transport {
3434 using Tcp = boost::asio::ip::tcp;
3535 using ErrorCode = boost::system::error_code;
3636 using ResolverResultsType = Tcp::resolver::results_type;
37- using ResolveCallback = void (const ErrorCode &,
38- const ResolverResultsType &);
39- using ResolveCallbackFunc = std::function<ResolveCallback>;
4037 using ConnectCallback = void (const ErrorCode &, const Tcp::endpoint &);
4138 using ConnectCallbackFunc = std::function<ConnectCallback>;
4239
@@ -46,33 +43,6 @@ namespace libp2p::transport {
4643 ProtoAddrVec layers,
4744 Tcp::socket &&socket);
4845
49- /* *
50- * @brief Resolve service name (DNS).
51- * @param endpoint endpoint to resolve.
52- * @param cb callback executed on operation completion.
53- */
54- void resolve (const Tcp::endpoint &endpoint, ResolveCallbackFunc cb);
55-
56- /* *
57- * @brief Resolve service name (DNS).
58- * @param host_name host name to resolve
59- * @param cb callback executed on operation completion.
60- */
61- void resolve (const std::string &host_name,
62- const std::string &port,
63- ResolveCallbackFunc cb);
64-
65- /* *
66- * @brief Resolve service name (DNS).
67- * @param protocol is either Tcp::ip4 or Tcp::ip6 protocol
68- * @param host_name host name to resolve
69- * @param cb callback executed on operation completion.
70- */
71- void resolve (const Tcp &protocol,
72- const std::string &host_name,
73- const std::string &port,
74- ResolveCallbackFunc cb);
75-
7646 /* *
7747 * @brief Connect to a remote service.
7848 * @param iterator list of resolved IP addresses of remote service.
0 commit comments