33 std::vector<std::pair<std::string, std::string>>
txt;
55 std::scoped_lock lock{mutex};
60 std::vector<ServiceData> ret;
74 std::scoped_lock lock{mutex};
75 queue.emplace_back(std::forward<ServiceData>(data));
79 std::vector<ServiceData> queue;
81 std::unique_ptr<Impl> pImpl;
93 const char* serviceType);
unsigned int WPI_MulticastServiceResolverHandle
Definition: MulticastServiceResolver.h:90
void WPI_StopMulticastServiceResolver(WPI_MulticastServiceResolverHandle handle)
void WPI_FreeMulticastServiceResolver(WPI_MulticastServiceResolverHandle handle)
WPI_MulticastServiceResolverHandle WPI_CreateMulticastServiceResolver(const char *serviceType)
void WPI_StartMulticastServiceResolver(WPI_MulticastServiceResolverHandle handle)
WPI_EventHandle WPI_GetMulticastServiceResolverEventHandle(WPI_MulticastServiceResolverHandle handle)
int32_t WPI_GetMulticastServiceResolverHasImplementation(WPI_MulticastServiceResolverHandle handle)
struct WPI_ServiceData WPI_ServiceData
void WPI_FreeServiceData(WPI_ServiceData *serviceData, int32_t length)
WPI_ServiceData * WPI_GetMulticastServiceResolverData(WPI_MulticastServiceResolverHandle handle, int32_t *dataCount)
WPI_Handle WPI_EventHandle
An event handle.
Definition: Synchronization.h:25
An atomic signaling event for synchronization.
Definition: Synchronization.h:250
Definition: MulticastServiceResolver.h:19
MulticastServiceResolver(std::string_view serviceType)
~MulticastServiceResolver() noexcept
void Start()
Starts multicast service resolver.
void Stop()
Stops multicast service resolver.
WPI_EventHandle GetEventHandle() const
Returns event handle.
Definition: MulticastServiceResolver.h:48
std::vector< ServiceData > GetData()
Returns multicast service resolver data.
Definition: MulticastServiceResolver.h:54
bool HasImplementation() const
Returns true if there's a multicast service resolver implementation.
basic_string_view< char > string_view
Definition: core.h:501
Definition: ntcore_cpp.h:26
Definition: MulticastServiceResolver.h:110
const char ** txtValues
Definition: MulticastServiceResolver.h:117
uint32_t ipv4Address
Definition: MulticastServiceResolver.h:111
const char * hostName
Definition: MulticastServiceResolver.h:114
int32_t txtCount
Definition: MulticastServiceResolver.h:115
const char ** txtKeys
Definition: MulticastServiceResolver.h:116
const char * serviceName
Definition: MulticastServiceResolver.h:113
int32_t port
Definition: MulticastServiceResolver.h:112
Definition: MulticastServiceResolver.h:23
std::vector< std::pair< std::string, std::string > > txt
Service data payload.
Definition: MulticastServiceResolver.h:33
std::string hostName
Host name.
Definition: MulticastServiceResolver.h:31
unsigned int ipv4Address
IPv4 address.
Definition: MulticastServiceResolver.h:25
int port
Port number.
Definition: MulticastServiceResolver.h:27
std::string serviceName
Service name.
Definition: MulticastServiceResolver.h:29
::std::mutex mutex
Definition: mutex.h:17