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
-5
View File
@@ -18,16 +18,11 @@
*/
#include "lobby.h"
#include "glm/glm.hpp"
#include "render/text_rasterizer.h"
#include "stream.h"
#include "utils/ranges.h"
#include "utils/strings.h"
#include "vk/vk.h"
#include <cstdint>
#include <glm/gtc/quaternion.hpp>
#include <map>
#include <string>
#include <tiny_gltf.h>
-1
View File
@@ -23,7 +23,6 @@
#include "vk/buffer.h"
#include "vk/image.h"
#include "vk/renderpass.h"
#include "wivrn_client.h"
#include "wivrn_discover.h"
#include <tiny_gltf.h>
-5
View File
@@ -23,13 +23,8 @@
#include "scene.h"
#include "stream_reprojection.h"
#include "utils/sync_queue.h"
#include "vk/device_memory.h"
#include "vk/renderpass.h"
#include "wivrn_client.h"
#include "wivrn_packets.h"
#include <condition_variable>
#include <deque>
#include <functional>
#include <mutex>
#include <thread>
#include <vulkan/vulkan_core.h>
+2 -2
View File
@@ -27,8 +27,8 @@ using namespace xrt::drivers::wivrn;
class wivrn_session
{
typed_socket<TCP, to_headset::control_packets, from_headset::control_packets> control;
typed_socket<UDP, to_headset::stream_packets, from_headset::stream_packets> stream;
typed_socket<TCP, to_headset::packets, from_headset::packets> control;
typed_socket<UDP, to_headset::packets, from_headset::packets> stream;
void handshake();