C# Class Kazyx.DeviceDiscovery.SsdpDiscovery

Afficher le fichier Open project: kazyx/kz-ssdp-discovery

Méthodes publiques

Méthode Description
AnalyzeDescription ( string response ) : SonyCameraDeviceInfo
ClearCache ( ) : void
GetActiveAdaptersAsync ( ) : Task>
SearchSonyCameraDevices ( System.TimeSpan timeout = null ) : void

Search sony camera devices and retrieve the endpoint URLs.

SearchUpnpDevices ( string st = ST_ALL, System.TimeSpan timeout = null ) : void

Search UPnP devices and retrieve the device description.

Méthodes protégées

Méthode Description
OnDiscovered ( DeviceDescriptionEventArgs e ) : void
OnDiscovered ( SonyCameraDeviceEventArgs e ) : void
OnTimeout ( EventArgs e ) : void

Private Methods

Méthode Description
GetActiveAdaptersAsync ( ) : Task>
GetDeviceDescriptionAsync ( string data, HostName remoteAddress ) : System.Threading.Tasks.Task
GetDeviceDescriptionAsync ( AsyncCallback ac, string data ) : void
Log ( string message ) : void
OnDatagramSocketMessageReceived ( DatagramSocket sender, DatagramSocketMessageReceivedEventArgs args ) : void
OnDescriptionObtained ( string response, Uri uri, HostName remoteAddress ) : void
ParseLocation ( string response ) : string
Search ( string st, System.TimeSpan timeout = null ) : void

Method Details

AnalyzeDescription() public static méthode

public static AnalyzeDescription ( string response ) : SonyCameraDeviceInfo
response string
Résultat SonyCameraDeviceInfo

ClearCache() public méthode

public ClearCache ( ) : void
Résultat void

GetActiveAdaptersAsync() public static méthode

public static GetActiveAdaptersAsync ( ) : Task>
Résultat Task>

OnDiscovered() protected méthode

protected OnDiscovered ( DeviceDescriptionEventArgs e ) : void
e DeviceDescriptionEventArgs
Résultat void

OnDiscovered() protected méthode

protected OnDiscovered ( SonyCameraDeviceEventArgs e ) : void
e SonyCameraDeviceEventArgs
Résultat void

OnTimeout() protected méthode

protected OnTimeout ( EventArgs e ) : void
e System.EventArgs
Résultat void

SearchSonyCameraDevices() public méthode

Search sony camera devices and retrieve the endpoint URLs.
public SearchSonyCameraDevices ( System.TimeSpan timeout = null ) : void
timeout System.TimeSpan Timeout to end up search.
Résultat void

SearchUpnpDevices() public méthode

Search UPnP devices and retrieve the device description.
public SearchUpnpDevices ( string st = ST_ALL, System.TimeSpan timeout = null ) : void
st string Search Target parameter for SSDP.
timeout System.TimeSpan Timeout to end up search.
Résultat void