X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fnetbase.h;h=26c2140155255c60345434d3ee38b16ba533a775;hb=ea22a380de824500644db6fd6f33d0465b34f7a1;hp=b5f9d5fad98bdd93e84e1ac86ac4cdf993b8e53f;hpb=6b8de05d0a6696dff4b7dccec5b74889f3cdc486;p=novacoin.git diff --git a/src/netbase.h b/src/netbase.h index b5f9d5f..26c2140 100644 --- a/src/netbase.h +++ b/src/netbase.h @@ -19,8 +19,6 @@ #include #include #include -#endif -#ifdef BSD #include #endif @@ -126,10 +124,10 @@ class CService : public CNetAddr ) }; -bool LookupHost(const char *pszName, std::vector& vIP, int nMaxSolutions = 0, bool fAllowLookup = true); -bool LookupHostNumeric(const char *pszName, std::vector& vIP, int nMaxSolutions = 0); +bool LookupHost(const char *pszName, std::vector& vIP, unsigned int nMaxSolutions = 0, bool fAllowLookup = true); +bool LookupHostNumeric(const char *pszName, std::vector& vIP, unsigned int nMaxSolutions = 0); bool Lookup(const char *pszName, CService& addr, int portDefault = 0, bool fAllowLookup = true); -bool Lookup(const char *pszName, std::vector& vAddr, int portDefault = 0, bool fAllowLookup = true, int nMaxSolutions = 0); +bool Lookup(const char *pszName, std::vector& 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);