C# Class Kazyx.DeviceDiscovery.SsdpDiscovery

ファイルを表示 Open project: kazyx/kz-ssdp-discovery

Public Methods

Method 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.

Protected Methods

Method Description
OnDiscovered ( DeviceDescriptionEventArgs e ) : void
OnDiscovered ( SonyCameraDeviceEventArgs e ) : void
OnTimeout ( EventArgs e ) : void

Private Methods

Method 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 method

public static AnalyzeDescription ( string response ) : SonyCameraDeviceInfo
response string
return SonyCameraDeviceInfo

ClearCache() public method

public ClearCache ( ) : void
return void

GetActiveAdaptersAsync() public static method

public static GetActiveAdaptersAsync ( ) : Task>
return Task>

OnDiscovered() protected method

protected OnDiscovered ( DeviceDescriptionEventArgs e ) : void
e DeviceDescriptionEventArgs
return void

OnDiscovered() protected method

protected OnDiscovered ( SonyCameraDeviceEventArgs e ) : void
e SonyCameraDeviceEventArgs
return void

OnTimeout() protected method

protected OnTimeout ( EventArgs e ) : void
e System.EventArgs
return void

SearchSonyCameraDevices() public method

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

SearchUpnpDevices() public method

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.
return void