From 9b0ff5821b074745fa708c7a1c66ca676a2482fc Mon Sep 17 00:00:00 2001 From: Kevin Matz Date: Mon, 30 Aug 2021 09:56:48 -0400 Subject: [PATCH] reuse IP address types from SDT --- protocols/sacn/sacn.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/protocols/sacn/sacn.h b/protocols/sacn/sacn.h index 601c117..76d4ef1 100644 --- a/protocols/sacn/sacn.h +++ b/protocols/sacn/sacn.h @@ -23,6 +23,8 @@ */ #pragma once +#include "sdt/sdt.h" + #include /** @@ -92,9 +94,15 @@ static const uint32_t VECTOR_E131_EXTENDED_DISCOVERY = 0x00000002; static const uint32_t VECTOR_UNIVERSE_DISCOVERY_UNIVERSE_LIST = 0x00000001; -static const uint16_t E131_E131_UNIVERSE_DISCOVER_INTERVAL = 10000; // ms +static const uint16_t E131_UNIVERSE_DISCOVER_INTERVAL = 10000; // ms static const uint16_t E131_NETWORK_DATA_LOSS_TIMEOUT = 2500; // ms static const uint16_t E131_DISCOVERY_UNIVERSE = 64214; static const uint16_t ACN_SDT_MULTICAST_PORT = 5568; + +/// @brief borrow Ip address types from ACN::SDT +using ip_addr_spec = ACN::SDT::ip_addr_spec; +/// @brief borrow Ip address struct from ACN::SDT::UDP +using ipAddress = ACN::SDT::UDP::ipAddress; + } // SACN