Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.

public interface Discovery.Listener

Receives what a browse(String, Listener) finds.

Methods

public abstract void found(Discovery.Service service)A service appeared, or changed its address, port or TXT record.
public abstract void lost(Discovery.Service service)A service said goodbye or its records expired.
public default void failed(String message)The socket could not be opened; nothing more will be reported.

Method details

found

public abstract void found(Discovery.Service service)
A service appeared, or changed its address, port or TXT record.

lost

public abstract void lost(Discovery.Service service)
A service said goodbye or its records expired. Only the name and type are set.

failed

public default void failed(String message)
The socket could not be opened; nothing more will be reported. The default does nothing.