aboutsummaryrefslogtreecommitdiff
path: root/src/netbase.h
diff options
context:
space:
mode:
authorDag Robole <dag.robole@gmail.com>2017-07-18 16:24:46 +0200
committerDag Robole <dag.robole@gmail.com>2017-07-22 09:11:55 +0200
commit05e023f2ec8d8dc37bb0f20db1c606f06aea69f5 (patch)
tree5b54cc8b64fef391f266edc3d9833a6d98277030 /src/netbase.h
parent7b6e8bc4424006119dc537699c8b3b3121e0b3c3 (diff)
downloadbitcoin-05e023f2ec8d8dc37bb0f20db1c606f06aea69f5.tar.xz
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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/netbase.h b/src/netbase.h
index fd4b34c8f1..941da31f9c 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.
*/