address resolver for NTCP address

This commit is contained in:
orignal 2015-01-16 15:25:44 -05:00
parent 0f227e8317
commit f3fbf6bd89
3 changed files with 64 additions and 8 deletions

View file

@ -94,6 +94,10 @@ namespace transport
void PostCloseSession (std::shared_ptr<const i2p::data::RouterInfo> router);
bool ConnectToPeer (const i2p::data::IdentHash& ident, Peer& peer);
void NTCPResolve (const char * addr, const i2p::data::IdentHash& ident);
void HandleNTCPResolve (const boost::system::error_code& ecode, boost::asio::ip::tcp::resolver::iterator it,
const i2p::data::IdentHash& ident, std::shared_ptr<boost::asio::ip::tcp::resolver> resolver);
void DetectExternalIP ();
private: