Пример #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)
Пример #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
Пример #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 = {}
Пример #4
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 = {}
Пример #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 = {}
Пример #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 = {}
Пример #7
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 = {}
Пример #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 = {}
Пример #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")
Пример #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")
Пример #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)
Пример #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")
Пример #13
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)
Пример #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")
Пример #15
0
 def __init__(self, protocol):
     # Call superclass constructor
     Capability.__init__(self, protocol)
Пример #16
0
    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)
Пример #17
0
 def __init__(self, protocol):
     self.protocol = protocol 
     Capability.__init__(self, protocol)
     protocol.register_operation(self.opcode_unadvertise_service, self.unadvertise_service)
Пример #18
0
 def __init__(self, protocol):
     self.protocol = protocol
     Capability.__init__(self, protocol)
     protocol.register_operation(self.opcode_unadvertise_service,
                                 self.unadvertise_service)
Пример #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)
Пример #21
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
    def __init__(self, protocol):
        self.protocol = protocol
        Capability.__init__(self, protocol)

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