C# Class cloudmusic2upnp.DeviceController.UPnP.Controller

Inheritance: IController
Afficher le fichier Open project: TilmannBach/cloudmusic2upnp

Méthodes publiques

Méthode Description
Controller ( uint networkAdapterIndex ) : System

Starts a new DeviceController for controlling UPnP-Media-Renderer in your network.

GetDevice ( string udn ) : IDevice
GetDevices ( ) : IDevice[]
Shutdown ( ) : void

Explicitly free's up memory used by the c++ library.

Méthodes protégées

Méthode Description
OnDeviceDiscovered ( UPnPDevice dev ) : void
OnDeviceRemoved ( UPnPDevice dev ) : void

Private Methods

Méthode Description
DeviceAdded ( OpenHome aList, OpenHome aDevice ) : void

Handler for CpDeviceList if devices are found on the network.

DeviceRemoved ( OpenHome aList, OpenHome aDevice ) : void

Handler for CpDeviceList if devices are removed from the network (they should send a bye if they went offline, or announcement keep alive is over).

PrintDeviceInfo ( string aPrologue, OpenHome aDevice ) : void

Prints some device information.

startListening ( ) : void

Destructor for freeing memory from c++ library.

Method to set up the devicelist. OpenHome-lib starts listening here...

Method Details

Controller() public méthode

Starts a new DeviceController for controlling UPnP-Media-Renderer in your network.
public Controller ( uint networkAdapterIndex ) : System
networkAdapterIndex uint
Résultat System

GetDevice() public méthode

public GetDevice ( string udn ) : IDevice
udn string
Résultat IDevice

GetDevices() public méthode

public GetDevices ( ) : IDevice[]
Résultat IDevice[]

OnDeviceDiscovered() protected méthode

protected OnDeviceDiscovered ( UPnPDevice dev ) : void
dev UPnPDevice
Résultat void

OnDeviceRemoved() protected méthode

protected OnDeviceRemoved ( UPnPDevice dev ) : void
dev UPnPDevice
Résultat void

Shutdown() public méthode

Explicitly free's up memory used by the c++ library.
public Shutdown ( ) : void
Résultat void