Use same packet definitions for both sockets

This commit is contained in:
Patrick Nicolas
2023-12-16 14:16:47 +01:00
committed by Guillaume Meunier
parent 1792607ada
commit 94e60d4e8b
8 changed files with 9 additions and 22 deletions
+3 -3
View File
@@ -28,8 +28,8 @@ using namespace xrt::drivers::wivrn;
class wivrn_connection
{
typed_socket<TCP, from_headset::control_packets, to_headset::control_packets> control;
typed_socket<UDP, from_headset::stream_packets, to_headset::stream_packets> stream;
typed_socket<TCP, from_headset::packets, to_headset::packets> control;
typed_socket<UDP, from_headset::packets, to_headset::packets> stream;
public:
wivrn_connection(TCP && tcp);
@@ -47,7 +47,7 @@ public:
stream.send(std::forward<T>(packet));
}
std::optional<from_headset::control_packets> poll_control(int timeout);
std::optional<from_headset::packets> poll_control(int timeout);
template <typename T>
int poll(T && visitor, int timeout)