UpnpInit();

UpnpSetWebServerRootDir();
UpnpRegisterRootDevice(); // UpnpRegisterRootDevice2();
//device-specific initialization.
UpnpSendAdvertisement();


/* 
    Handle asynchronous requests:
        =>Subscribe
        =>service state variable(event), UpnpNotify(); //UpnpNotifyExt();
        =>control
*/


//Finally, shutdown the devices.
UpnpUnRegisterRootDevice(); //Send Out SSDP "bye-bye" messages and un-register the device from the SDK.

UpnpFinish(); //Shutdown the SDK.

