C# Класс cloudmusic2upnp.DeviceController.UPnP.Controller

Наследование: IController
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
OnDeviceDiscovered ( UPnPDevice dev ) : void
OnDeviceRemoved ( UPnPDevice dev ) : void

Приватные методы

Метод Описание
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...

Описание методов

Controller() публичный Метод

Starts a new DeviceController for controlling UPnP-Media-Renderer in your network.
public Controller ( uint networkAdapterIndex ) : System
networkAdapterIndex uint
Результат System

GetDevice() публичный Метод

public GetDevice ( string udn ) : IDevice
udn string
Результат IDevice

GetDevices() публичный Метод

public GetDevices ( ) : IDevice[]
Результат IDevice[]

OnDeviceDiscovered() защищенный Метод

protected OnDeviceDiscovered ( UPnPDevice dev ) : void
dev UPnPDevice
Результат void

OnDeviceRemoved() защищенный Метод

protected OnDeviceRemoved ( UPnPDevice dev ) : void
dev UPnPDevice
Результат void

Shutdown() публичный Метод

Explicitly free's up memory used by the c++ library.
public Shutdown ( ) : void
Результат void