Public Member Functions
javax.jmdns.ServiceListener Interface Reference
Inheritance diagram for javax.jmdns.ServiceListener:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void serviceAdded (ServiceEvent event)
void serviceRemoved (ServiceEvent event)
void serviceResolved (ServiceEvent event)

Detailed Description

Listener for service updates.

Author:
Arthur van Hoff, Werner Randelshofer, Pierre Frisch

Definition at line 14 of file ServiceListener.java.


Member Function Documentation

A service has been added.
Note:This event is only the service added event. The service info associated with this event does not include resolution information.
To get the full resolved information you need to listen to serviceResolved(ServiceEvent) or call JmDNS#getServiceInfo(String, String, long)

  ServiceInfo info = event.getDNS().getServiceInfo(event.getType(), event.getName())
 

Please note that service resolution may take a few second to resolve.

Parameters:
eventThe ServiceEvent providing the name and fully qualified type of the service.

Implemented in javax.jmdns.impl.JmDNSImpl.ServiceCollector, com.github.rosjava.zeroconf_jmdns_suite.jmdns.Zeroconf, and ros.zeroconf.jmdns.BrowserOriginal.

A service has been removed.

Parameters:
eventThe ServiceEvent providing the name and fully qualified type of the service.

Implemented in javax.jmdns.impl.JmDNSImpl.ServiceCollector, com.github.rosjava.zeroconf_jmdns_suite.jmdns.Zeroconf, and ros.zeroconf.jmdns.BrowserOriginal.

A service has been resolved. Its details are now available in the ServiceInfo record.
Note:This call back will never be called if the service does not resolve.

Parameters:
eventThe ServiceEvent providing the name, the fully qualified type of the service, and the service info record.

Implemented in javax.jmdns.impl.JmDNSImpl.ServiceCollector, com.github.rosjava.zeroconf_jmdns_suite.jmdns.Zeroconf, and ros.zeroconf.jmdns.BrowserOriginal.


The documentation for this interface was generated from the following file:


zeroconf_jmdns_suite
Author(s): Daniel Stonier
autogenerated on Thu Aug 27 2015 15:50:27