Package edu.wpi.first.net
Class MulticastServiceResolver
java.lang.Object
edu.wpi.first.net.MulticastServiceResolver
- All Implemented Interfaces:
AutoCloseable
public class MulticastServiceResolver extends Object implements AutoCloseable
Class to resolve a service over mDNS.
-
Constructor Summary
Constructors Constructor Description MulticastServiceResolver(String serviceType)
Creates a MulticastServiceResolver. -
Method Summary
Modifier and Type Method Description void
close()
ServiceData[]
getData()
Returns multicast service resolver data.int
getEventHandle()
Returns event handle.boolean
hasImplementation()
Returns true if there's a multicast service resolver implementation.void
start()
Starts multicast service resolver.void
stop()
Stops multicast service resolver.
-
Constructor Details
-
MulticastServiceResolver
Creates a MulticastServiceResolver.- Parameters:
serviceType
- service type to look for
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
-
start
Starts multicast service resolver. -
stop
Stops multicast service resolver. -
hasImplementation
Returns true if there's a multicast service resolver implementation.- Returns:
- True if there's a multicast service resolver implementation.
-
getEventHandle
Returns event handle.- Returns:
- Event handle.
-
getData
Returns multicast service resolver data.- Returns:
- Multicast service resolver data.
-