&reftitle.examples;
Browsing devices and services
This example shows how to obtain information about all devices and services.
It starts infinite loop (use CLI) and while any of available devices or services
is found proper callback function will be invoked.
Search for all UPnP devices and services.
]]>
Implementing the BinaryLight device
This is an example of UPnP device/service, implementing the BinaryLight
device and SwitchPower services to emulate a light switch.
The user interface was purposely simplified in order to show basic
concepts and methods.
Implementing light server
]]>
Implementing light client
$mode, 'cp' => $cp);
gupnp_control_point_callback_set($cp, GUPNP_SIGNAL_SERVICE_PROXY_AVAILABLE, $cb, $arg);
/* Start for browsing */
gupnp_control_point_browse_start($cp);
?>
]]>