def __init__(self, protocol): # Call superclass constructor Capability.__init__(self, protocol) # Register the operations that this capability provides protocol.register_operation("unadvertise_service", self.unadvertise_service)
def __init__(self, protocol): self.protocol = protocol Capability.__init__(self, protocol) protocol.register_operation(self.opcode_advertise_service, self.advertise_service) self.protocol.service_list = self.service_list self.protocol.request_list = self.request_list
def __init__(self, protocol): # Call superclass constructor Capability.__init__(self, protocol) # Register the operations that this capability provides protocol.register_operation("subscribe", self.subscribe) protocol.register_operation("unsubscribe", self.unsubscribe) self._subscriptions = {}
def __init__(self, protocol): # Call superclas constructor Capability.__init__(self, protocol) # Register the operations that this capability provides protocol.register_operation("publish", self.publish) # Save the topics that are published on for the purposes of unregistering self._published = {}
def __init__(self, protocol): # Call superclas constructor Capability.__init__(self, protocol) # Register the operations that this capability provides protocol.register_operation("advertise", self.advertise) protocol.register_operation("unadvertise", self.unadvertise) # Initialize class variables self._registrations = {}
def __init__(self, protocol): # Call superclas constructor Capability.__init__(self, protocol) # Register the operations that this capability provides protocol.register_operation("publish", self.publish) # Save the topics that are published on for the purposes of unregistering self._published = {} if protocol.parameters and protocol.parameters.has_key("unregister_timeout"): manager.unregister_timeout = protocol.parameters.get("unregister_timeout")
def __init__(self, protocol): Capability.__init__(self, protocol) self.protocol = protocol # populate parameters if self.protocol.parameters != None: self.fragment_timeout = self.protocol.parameters["fragment_timeout"] protocol.register_operation(self.opcode, self.defragment) self.received_fragments = ReceivedFragments().lists threading.Thread.__init__(self)
def __init__(self, protocol): # Call superclas constructor Capability.__init__(self, protocol) # Register the operations that this capability provides protocol.register_operation("advertise", self.advertise) protocol.register_operation("unadvertise", self.unadvertise) # Initialize class variables self._registrations = {} if protocol.parameters and protocol.parameters.has_key("unregister_timeout"): manager.unregister_timeout = protocol.parameters.get("unregister_timeout")
def __init__(self, protocol): # Call superclas constructor Capability.__init__(self, protocol) # Register the operations that this capability provides protocol.register_operation("advertise", self.advertise) protocol.register_operation("unadvertise", self.unadvertise) # Initialize class variables self._registrations = {} if protocol.parameters and "unregister_timeout" in protocol.parameters: manager.unregister_timeout = protocol.parameters.get( "unregister_timeout")
def __init__(self, protocol): # Call superclass constructor Capability.__init__(self, protocol)
def __init__(self, protocol): # Call superclas constructor Capability.__init__(self, protocol) # Register the operations that this capability provides protocol.register_operation("call_service", self.call_service)
def __init__(self, protocol): self.protocol = protocol Capability.__init__(self, protocol) protocol.register_operation(self.opcode_unadvertise_service, self.unadvertise_service)
def __init__(self, protocol): self.protocol = protocol Capability.__init__(self, protocol) protocol.register_operation(self.opcode_service_response, self.service_response)