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.
This commit is contained in:
Patrick Strateman
2018-09-25 15:32:07 -04:00
parent 1e6afd0dbc
commit 7e403c0ae7
2 changed files with 53 additions and 35 deletions

View File

@@ -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();