Use mDNS/DNS-SD to find the server

This commit is contained in:
Guillaume Meunier
2022-11-11 15:59:55 +01:00
parent 128e221e64
commit c218891653
10 changed files with 2388 additions and 242 deletions
-12
View File
@@ -95,20 +95,8 @@ enum video_codec
namespace from_headset
{
struct client_announce_packet
{
static const constexpr std::array<char, 5> magic_value = {'W', 'i', 'V', 'R', 'n'};
// Broadcast on the announce port, not typed
std::array<char, 5> magic;
std::string client_version;
uint64_t protocol_hash;
};
struct headset_info_packet
{
// First packet sent by the HMD on the control socket, not typed
uint32_t recommended_eye_width;
uint32_t recommended_eye_height;
std::vector<float> available_refresh_rates;