思维导图


该库并非纯C实现,其中用到少量C++库。


./configure --disable-soap --disable-gena  --disable-tools --disable-ipv6 --disable-scriptsupport --disable-samples --disable-webserver

samples

$ ./tv_device 
Initializing UPnP Sdk with
        interface = {NULL} port = 0
UPnP Initialized
        ipaddress = 192.168.13.35 port = 49152
Specifying the webserver root directory -- ./web
Registering the RootDevice
         with desc_doc_url: http://192.168.13.35:49152/tvdevicedesc.xml
RootDevice Registered
Initializing State Table
common/sample_util.c(241): Error finding URLBase in XML Node
Found service: urn:schemas-upnp-org:service:tvcontrol:1
serviceId: urn:upnp-org:serviceId:tvcontrol1
common/sample_util.c(241): Error finding URLBase in XML Node
Found service: urn:schemas-upnp-org:service:tvpicture:1
serviceId: urn:upnp-org:serviceId:tvpicture1
State Table Initialized
Advertisements Sent

>> ======================================================================
----------------------------------------------------------------------
UPNP_EVENT_SUBSCRIPTION_REQUEST
ServiceID   =  urn:upnp-org:serviceId:tvcontrol1
UDN         =  uuid:Upnp-TVEmulator-1_0-1234567890001
SID         =  uuid:adf19392-2a45-11ec-ac42-947b35d64e4e
----------------------------------------------------------------------
======================================================================



======================================================================
----------------------------------------------------------------------
UPNP_EVENT_SUBSCRIPTION_REQUEST
ServiceID   =  urn:upnp-org:serviceId:tvpicture1
UDN         =  uuid:Upnp-TVEmulator-1_0-1234567890001
SID         =  uuid:adf1e220-2a45-11ec-ac42-947b35d64e4e
----------------------------------------------------------------------
======================================================================





   Unknown command:  

   Valid Commands:
     Exit


>> exit
Shutting down...