How to use the continuum.proto.ProtoMixin.__init__ function in continuum

To help you get started, we’ve selected a few continuum examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github zyantific / continuum / continuum / client.py View on Github external
def __init__(self, sock, core):
        asyncore.dispatcher_with_send.__init__(self, sock=sock)
        ProtoMixin.__init__(self)
        QObject.__init__(self)
        self.core = core
        self.idb_path = GetIdbPath()

        self.send_packet({
            'kind': 'new_client',
            'input_file': GetInputFile(),
            'idb_path': GetIdbPath(),
            'pid': os.getpid(),
        })

        print("[continuum] Connected.")
github zyantific / continuum / continuum / server.py View on Github external
def __init__(self, sock, server):
        # We need to use old-style init calls here because asyncore 
        # consists of old-style classes :(
        asyncore.dispatcher_with_send.__init__(self, sock=sock)
        ProtoMixin.__init__(self)

        self.input_file = None
        self.idb_path = None
        self.server = server
        self.project = server.core.project
        self.server.clients.add(self)