diff options
| author | Jeff Garzik <[email protected]> | 2011-06-11 16:17:13 -0700 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2011-06-11 16:17:13 -0700 |
| commit | ce148944c776ae8e91cc058f44ddce356c7cebc9 (patch) | |
| tree | ce40033b63b17ee2527795781885a76310d5fe0d /src/net.h | |
| parent | Merge pull request #312 from codler/patch-1 (diff) | |
| parent | Faster timeout when connecting (diff) | |
| download | archived-discoin-0.3.23.tar.xz archived-discoin-0.3.23.zip | |
Merge pull request #300 from sipa/connecttimeoutv0.3.23rc1v0.3.23
non-blocking connect (by phantomcircuit)
Diffstat (limited to 'src/net.h')
| -rw-r--r-- | src/net.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -19,6 +19,7 @@ class CRequestTracker; class CNode; class CBlockIndex; extern int nBestHeight; +extern int nConnectTimeout; @@ -32,7 +33,7 @@ enum -bool ConnectSocket(const CAddress& addrConnect, SOCKET& hSocketRet); +bool ConnectSocket(const CAddress& addrConnect, SOCKET& hSocketRet, int nTimeout=nConnectTimeout); bool Lookup(const char *pszName, std::vector<CAddress>& vaddr, int nServices, int nMaxSolutions, bool fAllowLookup = false, int portDefault = 0, bool fAllowPort = false); bool Lookup(const char *pszName, CAddress& addr, int nServices, bool fAllowLookup = false, int portDefault = 0, bool fAllowPort = false); bool GetMyExternalIP(unsigned int& ipRet); |