aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorPatrick Strateman <[email protected]>2018-09-25 15:32:07 -0400
committerPatrick Strateman <[email protected]>2018-11-30 18:02:51 -0500
commit7e403c0ae705455aa66f7df9a9a99f462fd4e9a8 (patch)
tree192f2071cf1808a59c64f347800c788b61c9aa7a /src/net.h
parentIntroduce and use constant SELECT_TIMEOUT_MILLISECONDS. (diff)
downloaddiscoin-7e403c0ae705455aa66f7df9a9a99f462fd4e9a8.tar.xz
discoin-7e403c0ae705455aa66f7df9a9a99f462fd4e9a8.zip
Move GenerateSelectSet logic to private method.
This separates the socket event collection logic from the logic deciding which events we're interested in at all.
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/net.h b/src/net.h
index a059d32c8..27121ab21 100644
--- a/src/net.h
+++ b/src/net.h
@@ -342,6 +342,7 @@ private:
void DisconnectNodes();
void NotifyNumConnectionsChanged();
void InactivityCheck(CNode *pnode);
+ bool GenerateSelectSet(std::set<SOCKET> &recv_set, std::set<SOCKET> &send_set, std::set<SOCKET> &error_set);
void SocketHandler();
void ThreadSocketHandler();
void ThreadDNSAddressSeed();