#include <connectionmanager.h>
Public Member Functions | |
cConnectionManager (UpnpDevice_Handle DeviceHandle) | |
virtual int | subscribe (Upnp_Subscription_Request *Request) |
virtual int | execute (Upnp_Action_Request *Request) |
virtual void | setError (Upnp_Action_Request *Request, int Error) |
This is the connection manager service which handles all incoming connection, creates and destroys connections to clients.
cConnectionManager::cConnectionManager | ( | UpnpDevice_Handle | DeviceHandle | ) |
Constructor of a Connection manager
This creates an instance of a Connection Manager Service and provides interfaces for executing actions and subscribing on events.
DeviceHandle | the UPnP device handle of this root device |
int cConnectionManager::execute | ( | Upnp_Action_Request * | Request | ) | [virtual] |
Executes an action
This executes an action initialized by a control point. The result is stored in the first parameter.
UPNP_E_SUCCESS
, if subscription was okayRequest | Input and output parameters of an action |
Implements cUpnpService.
void cConnectionManager::setError | ( | Upnp_Action_Request * | Request, | |
int | Error | |||
) | [virtual] |
Sets an error on an action request
This function puts a error message into the action request structure according to its error code
Request | the action request, to set the error for | |
Error | the error code of which the message should be obtained |
Reimplemented from cUpnpService.
int cConnectionManager::subscribe | ( | Upnp_Subscription_Request * | Request | ) | [virtual] |
Subscribes to an event
This is a callback function to register a new subscriber for an event.
UPNP_E_SUCCESS
, if subscription was okayRequest | Information about the subscription |
Implements cUpnpService.