Package edu.wpi.first.net
Class MulticastServiceAnnouncer
java.lang.Object
edu.wpi.first.net.MulticastServiceAnnouncer
- All Implemented Interfaces:
AutoCloseable
Class to announce over mDNS that a service is available.
-
Constructor Summary
ConstructorDescriptionMulticastServiceAnnouncer
(String serviceName, String serviceType, int port) Creates a MulticastServiceAnnouncer.Creates a MulticastServiceAnnouncer. -
Method Summary
-
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
-
MulticastServiceAnnouncer
Creates a MulticastServiceAnnouncer.- Parameters:
serviceName
- service nameserviceType
- service typeport
- port
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
-
start
Starts multicast service announcer. -
stop
Stops multicast service announcer. -
hasImplementation
Returns true if there's a multicast service announcer implementation.- Returns:
- True if there's a multicast service announcer implementation.
-