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

Method ReceiveMsgFrom

src/test/util/net.cpp:111–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111bool ConnmanTestMsg::ReceiveMsgFrom(CNode& node, CSerializedNetMsg&& ser_msg) const
112{
113 bool queued = node.m_transport->SetMessageToSend(ser_msg);
114 assert(queued);
115 bool complete{false};
116 while (true) {
117 const auto& [to_send, _more, _msg_type] = node.m_transport->GetBytesToSend(false);
118 if (to_send.empty()) break;
119 NodeReceiveMsgBytes(node, to_send, complete);
120 node.m_transport->MarkBytesSent(to_send.size());
121 }
122 return complete;
123}
124
125CNode* ConnmanTestMsg::ConnectNodePublic(PeerManager& peerman, const char* pszDest, ConnectionType conn_type)
126{

Callers 7

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

Calls 5

SetMessageToSendMethod · 0.80
GetBytesToSendMethod · 0.80
MarkBytesSentMethod · 0.80
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected