javax.jmdns
Interface ServiceListener

All Known Implementing Classes:
Browser, ItunesListener

public interface ServiceListener

Listener for service updates.


Method Summary
 void addService(JmDNS jmdns, java.lang.String type, java.lang.String name)
          A service is added.
 void removeService(JmDNS jmdns, java.lang.String type, java.lang.String name)
          A service is removed.
 void resolveService(JmDNS jmdns, java.lang.String type, java.lang.String name, ServiceInfo info)
          A service is resolved.
 

Method Detail

addService

public void addService(JmDNS jmdns,
                       java.lang.String type,
                       java.lang.String name)
A service is added.

Parameters:
type - the fully qualified type of the service
name - the fully qualified name of the service

removeService

public void removeService(JmDNS jmdns,
                          java.lang.String type,
                          java.lang.String name)
A service is removed.

Parameters:
type - the fully qualified type of the service
name - the fully qualified name of the service

resolveService

public void resolveService(JmDNS jmdns,
                           java.lang.String type,
                           java.lang.String name,
                           ServiceInfo info)
A service is resolved. Its details are now available in the ServiceInfo record.

Parameters:
type - the fully qualified type of the service
name - the fully qualified name of the service
info - the service info record, or null if the service could be be resolved