Changeset View
Changeset View
Standalone View
Standalone View
src/netbase.h
Show All 33 Lines | public: | ||||
bool IsValid() const { return proxy.IsValid(); } | bool IsValid() const { return proxy.IsValid(); } | ||||
CService proxy; | CService proxy; | ||||
bool randomize_credentials; | bool randomize_credentials; | ||||
}; | }; | ||||
enum Network ParseNetwork(std::string net); | enum Network ParseNetwork(std::string net); | ||||
std::string GetNetworkName(enum Network net); | std::string GetNetworkName(enum Network net); | ||||
void SplitHostPort(std::string in, int &portOut, std::string &hostOut); | |||||
bool SetProxy(enum Network net, const proxyType &addrProxy); | bool SetProxy(enum Network net, const proxyType &addrProxy); | ||||
bool GetProxy(enum Network net, proxyType &proxyInfoOut); | bool GetProxy(enum Network net, proxyType &proxyInfoOut); | ||||
bool IsProxy(const CNetAddr &addr); | bool IsProxy(const CNetAddr &addr); | ||||
bool SetNameProxy(const proxyType &addrProxy); | bool SetNameProxy(const proxyType &addrProxy); | ||||
bool HaveNameProxy(); | bool HaveNameProxy(); | ||||
bool LookupHost(const char *pszName, std::vector<CNetAddr> &vIP, | bool LookupHost(const char *pszName, std::vector<CNetAddr> &vIP, | ||||
unsigned int nMaxSolutions, bool fAllowLookup); | unsigned int nMaxSolutions, bool fAllowLookup); | ||||
bool LookupHost(const char *pszName, CNetAddr &addr, bool fAllowLookup); | bool LookupHost(const char *pszName, CNetAddr &addr, bool fAllowLookup); | ||||
Show All 24 Lines |