X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fnetbase.h;h=7e995f617db7263a250652e09f4becbd53c48546;hb=9e58e0a8ca28b15a4bfa677f5b23891972db40fd;hp=883b62d8a40eda16f04ec3eef074a8e802f20e24;hpb=3b3a4cb430cf5a7e3665faeaec0ae882b0650336;p=novacoin.git diff --git a/src/netbase.h b/src/netbase.h index 883b62d..7e995f6 100644 --- a/src/netbase.h +++ b/src/netbase.h @@ -143,11 +143,12 @@ bool IsProxy(const CNetAddr &addr); bool SetNameProxy(CService addrProxy, int nSocksVersion = 5); bool HaveNameProxy(); 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, uint16_t portDefault = 0, bool fAllowLookup = true); bool Lookup(const char *pszName, std::vector& vAddr, uint16_t portDefault = 0, bool fAllowLookup = true, unsigned int nMaxSolutions = 0); bool LookupNumeric(const char *pszName, CService& addr, uint16_t portDefault = 0); bool ConnectSocket(const CService &addr, SOCKET& hSocketRet, int nTimeout = nConnectTimeout); bool ConnectSocketByName(CService &addr, SOCKET& hSocketRet, const char *pszDest, uint16_t portDefault = 0, int nTimeout = nConnectTimeout); +/** Close socket and set hSocket to INVALID_SOCKET */ +bool CloseSocket(SOCKET& hSocket); -#endif +#endif \ No newline at end of file