diff options
| author | Dag Robole <[email protected]> | 2017-07-18 16:24:46 +0200 |
|---|---|---|
| committer | Dag Robole <[email protected]> | 2017-07-22 09:11:55 +0200 |
| commit | 05e023f2ec8d8dc37bb0f20db1c606f06aea69f5 (patch) | |
| tree | 5b54cc8b64fef391f266edc3d9833a6d98277030 /src/netbase.h | |
| parent | Merge #10795: No longer ever reuse keypool indexes (diff) | |
| download | discoin-05e023f2ec8d8dc37bb0f20db1c606f06aea69f5.tar.xz discoin-05e023f2ec8d8dc37bb0f20db1c606f06aea69f5.zip | |
Move CloseSocket out of SetSocketNonBlocking and pass SOCKET by const reference in SetSocket* functions
Diffstat (limited to 'src/netbase.h')
| -rw-r--r-- | src/netbase.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/netbase.h b/src/netbase.h index fd4b34c8f..941da31f9 100644 --- a/src/netbase.h +++ b/src/netbase.h @@ -57,9 +57,9 @@ 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); +bool SetSocketNonBlocking(const SOCKET& hSocket, bool fNonBlocking); /** Set the TCP_NODELAY flag on a socket */ -bool SetSocketNoDelay(SOCKET& hSocket); +bool SetSocketNoDelay(const SOCKET& hSocket); /** * Convert milliseconds to a struct timeval for e.g. select. */ |