Add missing FindNode prototype to net.h

Also make the argument a const std::string & instead of pass-by-value.
This commit is contained in:
Wladimir J. van der Laan
2014-07-24 16:29:41 +02:00
parent ab651b2d62
commit 0430c30af1
2 changed files with 2 additions and 1 deletions

View File

@@ -59,6 +59,7 @@ bool RecvLine(SOCKET hSocket, std::string& strLine);
bool GetMyExternalIP(CNetAddr& ipRet);
void AddressCurrentlyConnected(const CService& addr);
CNode* FindNode(const CNetAddr& ip);
CNode* FindNode(const std::string& addrName);
CNode* FindNode(const CService& ip);
CNode* ConnectNode(CAddress addrConnect, const char *pszDest = NULL);
bool OpenNetworkConnection(const CAddress& addrConnect, CSemaphoreGrant *grantOutbound = NULL, const char *strDest = NULL, bool fOneShot = false);