Move SocketHandler logic to private method.

This commit is contained in:
Patrick Strateman 2018-09-24 17:03:17 -04:00
parent 2af9cff11a
commit 032488e6e7
2 changed files with 202 additions and 197 deletions

View file

@ -1262,13 +1262,8 @@ void CConnman::InactivityCheck(CNode *pnode)
}
}
void CConnman::ThreadSocketHandler()
void CConnman::SocketHandler()
{
while (!interruptNet)
{
DisconnectNodes();
NotifyNumConnectionsChanged();
//
// Find which sockets have data to receive
//
@ -1466,6 +1461,15 @@ void CConnman::ThreadSocketHandler()
pnode->Release();
}
}
void CConnman::ThreadSocketHandler()
{
while (!interruptNet)
{
DisconnectNodes();
NotifyNumConnectionsChanged();
SocketHandler();
}
}
void CConnman::WakeMessageHandler()

View file

@ -339,6 +339,7 @@ private:
void DisconnectNodes();
void NotifyNumConnectionsChanged();
void InactivityCheck(CNode *pnode);
void SocketHandler();
void ThreadSocketHandler();
void ThreadDNSAddressSeed();