Coverage for coherence/upnp/services/clients/connection_manager_client.py : 42%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
# Licensed under the MIT license # http://opensource.org/licenses/mit-license.php
# Copyright 2006-2008, Frank Scholz <coherence@beebits.net>
# def __del__(self): # #print "ConnectionManagerClient deleted" # pass
return "%s/%s" % (self.service.device.get_id(), self.service.get_id())
self.service.remove() self.service = None self.namespace = None self.url = None del self
self.service.subscribe_for_variable(var_name, instance=0, callback=callback, signal=signal)
action = self.service.get_action('GetProtocolInfo') return action.call()
peer_connection_manager, peer_connection_id, direction): action = self.service.get_action('PrepareForConnection') if action: # optional return action.call(RemoteProtocolInfo=remote_protocol_info, PeerConnectionManager=peer_connection_manager, PeerConnectionID=peer_connection_id, Direction=direction) return None
action = self.service.get_action('ConnectionComplete') if action: # optional return action.call(ConnectionID=connection_id) return None
action = self.service.get_action('GetCurrentConnectionIDs') return action.call()
action = self.service.get_action('GetCurrentConnectionInfo') return action.call(ConnectionID=connection_id) |