aboutsummaryrefslogtreecommitdiff
path: root/src/netbase.cpp
diff options
context:
space:
mode:
authorCory Fields <cory-nospam-@coryfields.com>2016-05-31 13:51:11 -0400
committerCory Fields <cory-nospam-@coryfields.com>2016-07-31 13:24:07 -0400
commitf96c7c4d91f3c09d26658bc9c15aa561689fa2d4 (patch)
tree4fc6bff63eff752e4791ae3fb64de77b427afeee /src/netbase.cpp
parent31d6b1d5f0414d8b356d8cb9c99961d8a04d6c0a (diff)
net: Split resolving out of CService
Diffstat (limited to 'src/netbase.cpp')
-rw-r--r--src/netbase.cpp34
1 files changed, 1 insertions, 33 deletions
diff --git a/src/netbase.cpp b/src/netbase.cpp
index bb16dd0439..2e7a4f758a 100644
--- a/src/netbase.cpp
+++ b/src/netbase.cpp
@@ -639,7 +639,7 @@ bool ConnectSocketByName(CService &addr, SOCKET& hSocketRet, const char *pszDest
}
}
- addr = CService("0.0.0.0:0");
+ addr = CService();
if (!HaveNameProxy())
return false;
@@ -1124,38 +1124,6 @@ bool CService::SetSockAddr(const struct sockaddr *paddr)
}
}
-CService::CService(const char *pszIpPort)
-{
- Init();
- CService ip;
- if (Lookup(pszIpPort, ip, 0, false))
- *this = ip;
-}
-
-CService::CService(const char *pszIpPort, int portDefault)
-{
- Init();
- CService ip;
- if (Lookup(pszIpPort, ip, portDefault, false))
- *this = ip;
-}
-
-CService::CService(const std::string &strIpPort)
-{
- Init();
- CService ip;
- if (Lookup(strIpPort.c_str(), ip, 0, false))
- *this = ip;
-}
-
-CService::CService(const std::string &strIpPort, int portDefault)
-{
- Init();
- CService ip;
- if (Lookup(strIpPort.c_str(), ip, portDefault, false))
- *this = ip;
-}
-
unsigned short CService::GetPort() const
{
return port;