28 std::span<
const std::pair<std::string, std::string>> txt);
39 std::span<
const std::pair<std::string_view, std::string_view>> txt);
67 std::unique_ptr<Impl> pImpl;
76 const char* serviceName,
const char* serviceType, int32_t port,
77 int32_t txtCount,
const char** keys,
const char** values);
void WPI_FreeMulticastServiceAnnouncer(WPI_MulticastServiceAnnouncerHandle handle)
void WPI_StopMulticastServiceAnnouncer(WPI_MulticastServiceAnnouncerHandle handle)
unsigned int WPI_MulticastServiceAnnouncerHandle
Definition: MulticastServiceAnnouncer.h:73
void WPI_StartMulticastServiceAnnouncer(WPI_MulticastServiceAnnouncerHandle handle)
int32_t WPI_GetMulticastServiceAnnouncerHasImplementation(WPI_MulticastServiceAnnouncerHandle handle)
WPI_MulticastServiceAnnouncerHandle WPI_CreateMulticastServiceAnnouncer(const char *serviceName, const char *serviceType, int32_t port, int32_t txtCount, const char **keys, const char **values)
Definition: MulticastServiceAnnouncer.h:16
bool HasImplementation() const
Returns true if there's a multicast service announcer implementation.
MulticastServiceAnnouncer(std::string_view serviceName, std::string_view serviceType, int port, std::span< const std::pair< std::string_view, std::string_view > > txt)
Creates a MulticastServiceAnnouncer.
MulticastServiceAnnouncer(std::string_view serviceName, std::string_view serviceType, int port)
Creates a MulticastServiceAnnouncer.
void Stop()
Stops multicast service announcer.
~MulticastServiceAnnouncer() noexcept
void Start()
Starts multicast service announcer.
MulticastServiceAnnouncer(std::string_view serviceName, std::string_view serviceType, int port, std::span< const std::pair< std::string, std::string > > txt)
Creates a MulticastServiceAnnouncer.
basic_string_view< char > string_view
Definition: core.h:501
Definition: ntcore_cpp.h:26