Example #1
0
    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)
Example #2
0
 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
Example #3
0
    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 = {}
Example #5
0
    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 = {}
Example #6
0
    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 = {}
Example #8
0
    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 = {}
Example #9
0
    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")
Example #10
0
    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")
Example #11
0
    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)
Example #12
0
    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):
        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)
Example #14
0
    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")
Example #15
0
 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)
Example #17
0
 def __init__(self, protocol):
     self.protocol = protocol 
     Capability.__init__(self, protocol)
     protocol.register_operation(self.opcode_unadvertise_service, self.unadvertise_service)
Example #18
0
 def __init__(self, protocol):
     self.protocol = protocol
     Capability.__init__(self, protocol)
     protocol.register_operation(self.opcode_unadvertise_service,
                                 self.unadvertise_service)
Example #19
0
    def __init__(self, protocol):
        self.protocol = protocol
        Capability.__init__(self, protocol)

        protocol.register_operation(self.opcode_service_response,
                                    self.service_response)
 def __init__(self, protocol):
     # Call superclass constructor
     Capability.__init__(self, protocol)
 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):
        self.protocol = protocol
        Capability.__init__(self, protocol)

        protocol.register_operation(self.opcode_service_response, self.service_response)