| 109 | } |
| 110 | |
| 111 | bool 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 | |
| 125 | CNode* ConnmanTestMsg::ConnectNodePublic(PeerManager& peerman, const char* pszDest, ConnectionType conn_type) |
| 126 | { |
no test coverage detected