diff options
author | Patrick Strateman <patrick.strateman@gmail.com> | 2018-09-26 21:51:46 -0400 |
---|---|---|
committer | Patrick Strateman <patrick.strateman@gmail.com> | 2018-11-30 18:02:51 -0500 |
commit | 28211a4bc9c65859b641b81a0541726a0e01988f (patch) | |
tree | 18d635f6bf4b467c253520bf14952ae2a2bf029b /src/net.h | |
parent | 7e403c0ae705455aa66f7df9a9a99f462fd4e9a8 (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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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(); |