Package brisa :: Package upnp :: Package control_point :: Module service
[hide private]
[frames] | no frames]

Module service

source code

Control Point side service implementation. Classes contained by this module contain methods for performing actions on the service and event notification.

If you're using the control point high level API with no modifications on the global flags (located on module brisa), then you shouldn't need to create this class manually.

The framework default response to a device arrival is to build it and its services automatically and forward it to your control point on the "new_device_event" subscribed callback. This callback will receive the device already ready for all actions.

These device's services are already built and their UPnP actions are already methods of the service object itself. For instance, a content directory service object would already have a Browse() method for you to call directly, passing parameters in the keywords format (key=value) e.g. cds.Browse(ObjectId=5, ...). Also note that the keys should be on the UPnP specified format, like the example above we used ObjectId, as it appears on the reference.

Classes [hide private]
  StateVariable
  ServiceBuilder
  Service
  SubscribeRequest
Wrapper for an event subscription.
  UnsubscribeRequest
Wrapper for an event unsubscription.
  RenewSubscribeRequest
Wrapper for renew an event subscription.
  AutoRenew
Functions [hide private]
 
is_relative(url, base) source code