MCPcopy Create free account
hub / github.com/HumbleNet/HumbleNet / disconnectPeer

Function disconnectPeer

tests/test_peer.cpp:31–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31void disconnectPeer(PeerId otherPeer)
32{
33 std::cout << "Disconnecting peer " << otherPeer << std::endl;
34 pendingPeers.erase(otherPeer);
35 connectedPeers.erase(otherPeer);
36 humblenet_p2p_disconnect(otherPeer);
37}
38
39void connectToPeer(PeerId peer)
40{

Callers 6

sendChatFunction · 0.85
readInputFunction · 0.85
main_loopFunction · 0.85
sendChatMethod · 0.85
readInputMethod · 0.85
RunMethod · 0.85

Calls 1

eraseMethod · 0.80

Tested by

no test coverage detected