diff options
| author | Pieter Wuille <[email protected]> | 2012-04-19 17:38:03 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2012-05-04 16:11:54 +0200 |
| commit | 9bab521df895c149579b9e64931405c56b008afb (patch) | |
| tree | 18177aabb6eb11265e3500a75abcdd6bf1150c86 /src/netbase.h | |
| parent | refactor ConnectSocket (diff) | |
| download | discoin-9bab521df895c149579b9e64931405c56b008afb.tar.xz discoin-9bab521df895c149579b9e64931405c56b008afb.zip | |
Support connecting by hostnames passed to proxy (-proxydns)
Diffstat (limited to 'src/netbase.h')
| -rw-r--r-- | src/netbase.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/netbase.h b/src/netbase.h index 00b6850b2..3d2956906 100644 --- a/src/netbase.h +++ b/src/netbase.h @@ -119,9 +119,13 @@ bool Lookup(const char *pszName, CService& addr, int portDefault = 0, bool fAllo bool Lookup(const char *pszName, std::vector<CService>& vAddr, int portDefault = 0, bool fAllowLookup = true, unsigned int nMaxSolutions = 0); bool LookupNumeric(const char *pszName, CService& addr, int portDefault = 0); bool ConnectSocket(const CService &addr, SOCKET& hSocketRet, int nTimeout = nConnectTimeout); +bool ConnectSocketByName(CService &addr, SOCKET& hSocketRet, const char *pszDest, int portDefault = 0, int nTimeout = nConnectTimeout); // Settings +extern int nSocksVersion; extern int fUseProxy; +extern bool fProxyNameLookup; +extern bool fNameLookup; extern CService addrProxy; #endif |