Merge pull request #1399 from sipa/ipparse

Improve parsing of IPv6 addresses
This commit is contained in:
Gavin Andresen
2012-06-18 11:39:16 -07:00
3 changed files with 119 additions and 43 deletions

View File

@@ -133,6 +133,7 @@ class CService : public CNetAddr
};
enum Network ParseNetwork(std::string net);
void SplitHostPort(std::string in, int &portOut, std::string &hostOut);
bool SetProxy(enum Network net, CService addrProxy, int nSocksVersion = 5);
bool GetProxy(enum Network net, CService &addrProxy);
bool IsProxy(const CNetAddr &addr);