Allow operations using only TCP

This commit is contained in:
Patrick Nicolas
2024-05-16 15:19:56 +02:00
parent f092a3fac0
commit 111afd4737
7 changed files with 114 additions and 51 deletions
+4 -1
View File
@@ -44,7 +44,10 @@ public:
template <typename T>
void send_stream(T && packet)
{
stream.send(std::forward<T>(packet));
if (stream)
stream.send(std::forward<T>(packet));
else
control.send(std::forward<T>(packet));
}
std::optional<from_headset::packets> poll_control(int timeout);