diff options
author | Philip Kaufmann <phil.kaufmann@t-online.de> | 2014-07-09 11:00:00 +0200 |
---|---|---|
committer | Philip Kaufmann <phil.kaufmann@t-online.de> | 2014-07-17 22:12:44 +0200 |
commit | eaedb59e0570558a528eac52f7fd89639911496e (patch) | |
tree | 7f762bd63985d4f3c6f1cb8ffaf3a6af9e0f946f /src/netbase.h | |
parent | e8d4cb807169dd56e8efc753521a94368dd2f69d (diff) |
net: add SetSocketNonBlocking() as OS independent wrapper
Diffstat (limited to 'src/netbase.h')
-rw-r--r-- | src/netbase.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/netbase.h b/src/netbase.h index 05221a5fde..7d83e35344 100644 --- a/src/netbase.h +++ b/src/netbase.h @@ -180,5 +180,7 @@ bool ConnectSocketByName(CService &addr, SOCKET& hSocketRet, const char *pszDest std::string NetworkErrorString(int err); /** Close socket and set hSocket to INVALID_SOCKET */ bool CloseSocket(SOCKET& hSocket); +/** Disable or enable blocking-mode for a socket */ +bool SetSocketNonBlocking(SOCKET& hSocket, bool fNonBlocking); #endif |