X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fnetbase.h;fp=src%2Fnetbase.h;h=0f562ca061d50348c13b05d0e3f9eb0f03effbb6;hp=883b62d8a40eda16f04ec3eef074a8e802f20e24;hb=75c3915a7c5c1a1542ac9c2bfe2db215e8cdd98c;hpb=77adc166b44b7cf6cdabe9c62d191a5f1493ab5e diff --git a/src/netbase.h b/src/netbase.h index 883b62d..0f562ca 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