MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / CloseSocketDisconnect

Method CloseSocketDisconnect

src/net.cpp:486–495  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

484}
485
486void CNode::CloseSocketDisconnect()
487{
488 fDisconnect = true;
489 LOCK(cs_hSocket);
490 if (hSocket != INVALID_SOCKET)
491 {
492 LogPrint(BCLog::NET, "disconnecting peer=%d\n", id);
493 CloseSocket(hSocket);
494 }
495}
496
497void CConnman::ClearBanned()
498{

Callers 3

SocketSendDataMethod · 0.80
ThreadSocketHandlerMethod · 0.80
StopMethod · 0.80

Calls 1

CloseSocketFunction · 0.85

Tested by

no test coverage detected