Android APIs
Added in API level 16
package

android.net.wifi.p2p.nsd

Classes

WifiP2pDnsSdServiceInfo A class for storing Bonjour service information that is advertised over a Wi-Fi peer-to-peer setup. 
WifiP2pDnsSdServiceRequest A class for creating a Bonjour service discovery request for use with addServiceRequest(WifiP2pManager.Channel, WifiP2pServiceRequest, WifiP2pManager.ActionListener) and removeServiceRequest(WifiP2pManager.Channel, WifiP2pServiceRequest, WifiP2pManager.ActionListener)  
WifiP2pServiceInfo A class for storing service information that is advertised over a Wi-Fi peer-to-peer setup 
WifiP2pServiceRequest A class for creating a service discovery request for use with addServiceRequest(WifiP2pManager.Channel, WifiP2pServiceRequest, WifiP2pManager.ActionListener) and removeServiceRequest(WifiP2pManager.Channel, WifiP2pServiceRequest, WifiP2pManager.ActionListener)

This class is used to create service discovery request for custom vendor specific service discovery protocol SERVICE_TYPE_VENDOR_SPECIFIC or to search all service protocols SERVICE_TYPE_ALL

WifiP2pUpnpServiceInfo A class for storing Upnp service information that is advertised over a Wi-Fi peer-to-peer setup. 
WifiP2pUpnpServiceRequest A class for creating a Upnp service discovery request for use with addServiceRequest(WifiP2pManager.Channel, WifiP2pServiceRequest, WifiP2pManager.ActionListener) and removeServiceRequest(WifiP2pManager.Channel, WifiP2pServiceRequest, WifiP2pManager.ActionListener)