diff options
| author | Cory Fields <[email protected]> | 2016-04-12 20:23:16 -0400 |
|---|---|---|
| committer | Cory Fields <[email protected]> | 2016-04-17 17:37:36 -0400 |
| commit | e9fc71e5fa6f0d7991bac616b9fed6a80e77a8d7 (patch) | |
| tree | e8685157e827889383718cb48b3dbc1db05f6bd7 /src/netbase.h | |
| parent | Merge #7603: Build System: Use PACKAGE_TARNAME in NSIS script (diff) | |
| download | discoin-e9fc71e5fa6f0d7991bac616b9fed6a80e77a8d7.tar.xz discoin-e9fc71e5fa6f0d7991bac616b9fed6a80e77a8d7.zip | |
net: require lookup functions to specify all arguments
To make it clear where DNS resolves are happening
Diffstat (limited to 'src/netbase.h')
| -rw-r--r-- | src/netbase.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/netbase.h b/src/netbase.h index db736154f..4529f9822 100644 --- a/src/netbase.h +++ b/src/netbase.h @@ -206,9 +206,9 @@ bool GetProxy(enum Network net, proxyType &proxyInfoOut); bool IsProxy(const CNetAddr &addr); bool SetNameProxy(const proxyType &addrProxy); bool HaveNameProxy(); -bool LookupHost(const char *pszName, std::vector<CNetAddr>& vIP, unsigned int nMaxSolutions = 0, bool fAllowLookup = true); -bool Lookup(const char *pszName, CService& addr, int portDefault = 0, bool fAllowLookup = true); -bool Lookup(const char *pszName, std::vector<CService>& vAddr, int portDefault = 0, bool fAllowLookup = true, unsigned int nMaxSolutions = 0); +bool LookupHost(const char *pszName, std::vector<CNetAddr>& vIP, unsigned int nMaxSolutions, bool fAllowLookup); +bool Lookup(const char *pszName, CService& addr, int portDefault, bool fAllowLookup); +bool Lookup(const char *pszName, std::vector<CService>& vAddr, int portDefault, bool fAllowLookup, unsigned int nMaxSolutions); bool LookupNumeric(const char *pszName, CService& addr, int portDefault = 0); bool ConnectSocket(const CService &addr, SOCKET& hSocketRet, int nTimeout, bool *outProxyConnectionFailed = 0); bool ConnectSocketByName(CService &addr, SOCKET& hSocketRet, const char *pszDest, int portDefault, int nTimeout, bool *outProxyConnectionFailed = 0); |