Use same packet definitions for both sockets
This commit is contained in:
committed by
Guillaume Meunier
parent
1792607ada
commit
94e60d4e8b
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user