Public Member Functions
com.github.rosjava.zeroconf_jmdns_suite.jmdns.ZeroconfDiscoveryHandler Interface Reference

Interface for a user listener. More...

Inheritance diagram for com.github.rosjava.zeroconf_jmdns_suite.jmdns.ZeroconfDiscoveryHandler:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void serviceAdded (DiscoveredService service)
void serviceRemoved (DiscoveredService service)
void serviceResolved (DiscoveredService service)

Detailed Description

Interface for a user listener.

Subclass this to create your own listener callbacks and then pass to the zeroconf class when you call the addListener command.

This needs a bit of work on the user's end - jmdns often provides alot of callbacks especially if you are listening on multiple interfaces. You'll need a bit of processing at the serviceResolved callback in particular.

Keep in mind that service info's come often come in with multiple addresses, or even addresses that have already been resolved on previous callbacks. So when processing resolved services, check the name, port and hostname haven't already been added to your stored entries and if they have, simply append whatever new addresses you find to the existing entry.

Definition at line 37 of file ZeroconfDiscoveryHandler.java.


Member Function Documentation


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