diff options
| author | Philip Kaufmann <[email protected]> | 2014-07-09 11:00:00 +0200 |
|---|---|---|
| committer | Philip Kaufmann <[email protected]> | 2014-07-17 22:12:44 +0200 |
| commit | eaedb59e0570558a528eac52f7fd89639911496e (patch) | |
| tree | 7f762bd63985d4f3c6f1cb8ffaf3a6af9e0f946f /src/netbase.h | |
| parent | Merge pull request #4504 (diff) | |
| download | discoin-eaedb59e0570558a528eac52f7fd89639911496e.tar.xz discoin-eaedb59e0570558a528eac52f7fd89639911496e.zip | |
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 05221a5fd..7d83e3534 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 |