aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorPatrick Strateman <patrick.strateman@gmail.com>2018-09-26 21:51:46 -0400
committerPatrick Strateman <patrick.strateman@gmail.com>2018-11-30 18:02:51 -0500
commit28211a4bc9c65859b641b81a0541726a0e01988f (patch)
tree18d635f6bf4b467c253520bf14952ae2a2bf029b /src/net.h
parent7e403c0ae705455aa66f7df9a9a99f462fd4e9a8 (diff)
Move SocketEvents logic to private method.
This separates the select() logic from the socket handling logic, setting up for a switch to poll().
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 27121ab213..eff7198111 100644
--- a/src/net.h
+++ b/src/net.h
@@ -343,6 +343,7 @@ private:
void NotifyNumConnectionsChanged();
void InactivityCheck(CNode *pnode);
bool GenerateSelectSet(std::set<SOCKET> &recv_set, std::set<SOCKET> &send_set, std::set<SOCKET> &error_set);
+ void SocketEvents(std::set<SOCKET> &recv_set, std::set<SOCKET> &send_set, std::set<SOCKET> &error_set);
void SocketHandler();
void ThreadSocketHandler();
void ThreadDNSAddressSeed();