All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends
Public Member Functions
ros.zeroconf.jmdns.ZeroconfDiscoveryHandler Interface Reference

Interface for a user listener. More...

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 22 of file ZeroconfDiscoveryHandler.java.


Member Function Documentation

void ros.zeroconf.jmdns.ZeroconfDiscoveryHandler.serviceAdded ( DiscoveredService  service)

The documentation for this interface was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends


zeroconf_jmdns
Author(s): Daniel Stonier
autogenerated on Tue Nov 6 2012 14:18:58