Class SsdpBrowser

Definition

Namespace:
Tizen.Network.Nsd
Assembly:
Tizen.Network.Nsd.dll
API Level:
4

This class is used for managing the network service discovery using SSDP.

C#
Copy
public class SsdpBrowser : INsdBrowser
Inheritance
System.Object
SsdpBrowser
Implements

Constructors

View Source

SsdpBrowser(String)

A public constructor for the SsdpBrowser class to create a SsdpBrowser instance for the given target.

Declaration
C#
Copy
public SsdpBrowser(string target)
Parameters
Type Name Description
System.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.

API Level: 4
Feature: http://tizen.org/feature/network.service_discovery.ssdp

Methods

View Source

StartDiscovery()

Starts browsing the SSDP remote service.

Declaration
C#
Copy
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.

API Level: 4
Feature: http://tizen.org/feature/network.service_discovery.ssdp
View Source

StopDiscovery()

Stops browsing the SSDP remote service.

Declaration
C#
Copy
public void StopDiscovery()
Exceptions
Type Condition
System.InvalidOperationException

Thrown when any other error occured.

System.NotSupportedException

Thrown when SSDP is not supported.

UnauthorizedAccessException

Thrown when the permission is denied.

API Level: 4
Privilege Level: public
Privilege: http://tizen.org/privilege/internet
Feature: http://tizen.org/feature/network.service_discovery.ssdp

Events

View Source

ServiceFound

This event is raised when the service has become available or unavailable during a service discovery using SSDP.

Declaration
C#
Copy
public event EventHandler<SsdpServiceFoundEventArgs> ServiceFound
Event Type
Type Description
System.EventHandler<SsdpServiceFoundEventArgs>
API Level: 4

Implements