Class SsdpBrowser
Definition
- Assembly:
- Tizen.Network.Nsd.dll
This class is used for managing the network service discovery using SSDP.
public class SsdpBrowser : INsdBrowser
- Inheritance
-
objectSsdpBrowser
- Implements
Constructors
View SourceSsdpBrowser(string)
A public constructor for the SsdpBrowser class to create a SsdpBrowser instance for the given target.
Declaration
public SsdpBrowser(string target)
Parameters
Type | Name | Description |
---|---|---|
string | target | The target to browse for the service. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown when the target is null. |
System.NotSupportedException | Thrown when SSDP is not supported. |
Methods
View SourceStartDiscovery()
Starts browsing the SSDP remote service.
Declaration
public void StartDiscovery()
Remarks
If there are any services available, the ServiceFound event will be invoked. The application will keep browsing for the available or unavailable services until it calls StopDiscovery().
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown when any other error occured. |
System.NotSupportedException | Thrown when SSDP is not supported. |
StopDiscovery()
Stops browsing the SSDP remote service.
Declaration
public void StopDiscovery()
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown when any other error occured. |
System.NotSupportedException | Thrown when SSDP is not supported. |
System.UnauthorizedAccessException | Thrown when the permission is denied. |
Events
View SourceServiceFound
This event is raised when the service has become available or unavailable during a service discovery using SSDP.
Declaration
public event EventHandler<SsdpServiceFoundEventArgs> ServiceFound
Event Type
Type | Description |
---|---|
System.EventHandler<TEventArgs><SsdpServiceFoundEventArgs> |