mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-01 02:41:48 +00:00
[wpinet] Handle empty txt block for mdns announcer (#4072)
This commit is contained in:
@@ -22,6 +22,14 @@ struct MulticastServiceAnnouncer::Impl {
|
||||
~Impl() noexcept { TXTRecordDeallocate(&txtRecord); }
|
||||
};
|
||||
|
||||
MulticastServiceAnnouncer::MulticastServiceAnnouncer(
|
||||
std::string_view serviceName, std::string_view serviceType, int port) {
|
||||
pImpl = std::make_unique<Impl>();
|
||||
pImpl->serviceName = serviceName;
|
||||
pImpl->serviceType = serviceType;
|
||||
pImpl->port = port;
|
||||
}
|
||||
|
||||
MulticastServiceAnnouncer::MulticastServiceAnnouncer(
|
||||
std::string_view serviceName, std::string_view serviceType, int port,
|
||||
wpi::span<const std::pair<std::string, std::string>> txt) {
|
||||
|
||||
Reference in New Issue
Block a user