X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fnetbase.h;fp=src%2Fnetbase.h;h=5e63d2f78bdadbe2a7ebe668ff5e79b178865aa7;hp=9300003c97145f8b7885c52b9ec703f020d27fa7;hb=cd7e570c1f74a1f1ab1590ecbb09bd3bfcb363ea;hpb=47bb141bf2d589db630ac1a917189b05b75b80d0 diff --git a/src/netbase.h b/src/netbase.h index 9300003..5e63d2f 100644 --- a/src/netbase.h +++ b/src/netbase.h @@ -149,5 +149,7 @@ bool Lookup(const char *pszName, std::vector& vAddr, uint16_t portDefa 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