Pack UDP send in tracking thread

This commit is contained in:
Patrick Nicolas
2024-10-02 18:39:40 +02:00
parent 0d21fb6980
commit 00a4562625
5 changed files with 156 additions and 43 deletions
+7 -2
View File
@@ -27,8 +27,13 @@ using namespace xrt::drivers::wivrn;
class wivrn_session
{
typed_socket<TCP, to_headset::packets, from_headset::packets> control;
typed_socket<UDP, to_headset::packets, from_headset::packets> stream;
public:
using control_socket_t = typed_socket<TCP, to_headset::packets, from_headset::packets>;
using stream_socket_t = typed_socket<UDP, to_headset::packets, from_headset::packets>;
private:
control_socket_t control;
stream_socket_t stream;
template <typename T>
void handshake(T address, bool tcp_only);