Move SocketHandler logic to private method.
This commit is contained in:
parent
2af9cff11a
commit
032488e6e7
2 changed files with 202 additions and 197 deletions
16
src/net.cpp
16
src/net.cpp
|
@ -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()
|
||||
|
|
|
@ -339,6 +339,7 @@ private:
|
|||
void DisconnectNodes();
|
||||
void NotifyNumConnectionsChanged();
|
||||
void InactivityCheck(CNode *pnode);
|
||||
void SocketHandler();
|
||||
void ThreadSocketHandler();
|
||||
void ThreadDNSAddressSeed();
|
||||
|
||||
|
|
Loading…
Reference in a new issue