mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +02:00
MultiChannelCommunication: Use generic handleInput
This way redirection, and any other changes we make to the packetizer/dispatch flow, apply to MultiChannelCommunication as well.
This commit is contained in:
@@ -163,14 +163,7 @@ void MultiChannelCommunication::vnetReadTask(size_t vnetIndex) {
|
|||||||
if(closing)
|
if(closing)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if(vnetPacketizer->input(payloadBytes)) {
|
handleInput(*vnetPacketizer, payloadBytes);
|
||||||
for(const auto& packet : vnetPacketizer->output()) {
|
|
||||||
std::shared_ptr<Message> msg;
|
|
||||||
if(!decoder->decode(msg, packet))
|
|
||||||
continue; // Error will have been reported from within decoder
|
|
||||||
dispatchMessage(msg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user