cConnectionManager Class Reference

#include <connectionmanager.h>

Inheritance diagram for cConnectionManager:

Inheritance graph
[legend]
Collaboration diagram for cConnectionManager:

Collaboration graph
[legend]

List of all members.

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)


Detailed Description

The connection manager service

This is the connection manager service which handles all incoming connection, creates and destroys connections to clients.


Constructor & Destructor Documentation

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.

Parameters:
DeviceHandle the UPnP device handle of this root device


Member Function Documentation

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.

Returns:
An integer representing one of the following:
  • UPNP_E_SUCCESS, if subscription was okay
  • or any other non null value in case of an error
Parameters:
Request 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

Parameters:
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.

Returns:
An integer representing one of the following:
  • UPNP_E_SUCCESS, if subscription was okay
  • or any other non null value in case of an error
Parameters:
Request Information about the subscription

Implements cUpnpService.


The documentation for this class was generated from the following files:

Generated on Sun Nov 8 15:44:09 2009 for UPnP/DLNA plugin for VDR by  doxygen 1.5.8