Package edu.wpi.first.util
Class MulticastServiceAnnouncer
java.lang.Object
edu.wpi.first.util.MulticastServiceAnnouncer
- All Implemented Interfaces:
AutoCloseable
public class MulticastServiceAnnouncer extends Object implements AutoCloseable
Class to announce over mDNS that a service is available.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description void
close()
boolean
hasImplementation()
void
start()
void
stop()
-
Constructor Details
-
MulticastServiceAnnouncer
public MulticastServiceAnnouncer(String serviceName, String serviceType, int port, Map<String,String> txt)Creates a MulticastServiceAnnouncer.- Parameters:
serviceName
- service nameserviceType
- service typeport
- porttxt
- txt
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
-
start
-
stop
-
hasImplementation
-