NsdManager

Class of android.net.nsd · NsdManager.java · Android's reference

public final class NsdManager

Network service discovery. No mDNS responder is here: each registration fails with an internal error.

Nested types

Fields

public static final int PROTOCOL_DNS_SD = 1 source
public static final int FAILURE_INTERNAL_ERROR = 0 source
public static final int FAILURE_ALREADY_ACTIVE = 3 source
public static final int FAILURE_MAX_LIMIT = 4 source
public static final int FAILURE_OPERATION_NOT_RUNNING = 5 source
public static final int FAILURE_BAD_PARAMETERS = 6 source
public static final String ACTION_NSD_STATE_CHANGED = "android.net.nsd.STATE_CHANGED" source
public static final String EXTRA_NSD_STATE = "nsd_state" source
public static final int NSD_STATE_DISABLED = 1 source
public static final int NSD_STATE_ENABLED = 2 source

Constructors

public NsdManager() empty body source

Methods

public void registerService(NsdServiceInfo serviceInfo, int protocolType, RegistrationListener listener) source
public void unregisterService(RegistrationListener listener) source

A failed registration leaves the listener unregistered, so this listener is unknown.


Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.