MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / FlushSendBuffer

Method FlushSendBuffer

src/test/util/net.cpp:99–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99void ConnmanTestMsg::FlushSendBuffer(CNode& node) const
100{
101 LOCK(node.cs_vSend);
102 node.vSendMsg.clear();
103 node.m_send_memusage = 0;
104 while (true) {
105 const auto& [to_send, _more, _msg_type] = node.m_transport->GetBytesToSend(false);
106 if (to_send.empty()) break;
107 node.m_transport->MarkBytesSent(to_send.size());
108 }
109}
110
111bool ConnmanTestMsg::ReceiveMsgFrom(CNode& node, CSerializedNetMsg&& ser_msg) const
112{

Callers 7

BOOST_AUTO_TEST_CASEFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
p2p_handshake.cppFile · 0.80
cmpctblock.cppFile · 0.80
SendMessageMethod · 0.80

Calls 5

GetBytesToSendMethod · 0.80
MarkBytesSentMethod · 0.80
clearMethod · 0.45
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected