X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fnetbase.h;h=e6f3e6d51a208010f01042aede5d4698323aac3b;hp=14c632eafda376d9110824aeccd7a5316fd97e82;hb=8ba3ee467d792328984c6a26c8a08ead8ebbf1e0;hpb=c86dddd612a960470b8bcefa47e05c270845b86d diff --git a/src/netbase.h b/src/netbase.h index 14c632e..e6f3e6d 100644 --- a/src/netbase.h +++ b/src/netbase.h @@ -126,14 +126,14 @@ class CService : public CNetAddr ) }; -typedef std::pair proxyType; +typedef CService proxyType; enum Network ParseNetwork(std::string net); void SplitHostPort(std::string in, uint16_t &portOut, std::string &hostOut); -bool SetProxy(enum Network net, CService addrProxy, int nSocksVersion = 5); +bool SetProxy(enum Network net, CService addrProxy); bool GetProxy(enum Network net, proxyType &proxyInfoOut); bool IsProxy(const CNetAddr &addr); -bool SetNameProxy(CService addrProxy, int nSocksVersion = 5); +bool SetNameProxy(CService addrProxy); bool HaveNameProxy(); bool LookupHost(const std::string& strName, std::vector& vIP, unsigned int nMaxSolutions = 0, bool fAllowLookup = true); bool LookupHost(const char *pszName, std::vector& vIP, unsigned int nMaxSolutions = 0, bool fAllowLookup = true);