示例#1
0
 def __init__(self, conn, opts):
     GLibXpraClient.__init__(self, conn, opts)
     def check_kicked_out(*args):
         if not self._protocol._closed:
             log.error("BUG: illegal command did not get us kicked out: we are still connected!")
         self.quit()
     gobject.timeout_add(5*1000, check_kicked_out)
    def __init__(self, conn, opts):
        GLibXpraClient.__init__(self, conn, opts)

        def check_connection_timeout(*args):
            log.error("BUG: timeout did not fire: we are still connected!")
            self.quit()

        gobject.timeout_add(20 * 1000, check_connection_timeout)
    def __init__(self, conn, opts):
        GLibXpraClient.__init__(self, conn, opts)

        def check_connection_timeout(*args):
            log.error("BUG: timeout did not fire: we are still connected!")
            self.quit()

        gobject.timeout_add(20 * 1000, check_connection_timeout)
示例#4
0
 def __init__(self, conn, opts):
     GLibXpraClient.__init__(self, conn, opts)
     def check_connection_dead(*args):
         self.send(["irrelevant"])
     gobject.timeout_add(1000, check_connection_dead)
     def check_connection_timeout(*args):
         log.error("BUG: packet size failsafe did not fire: we are still connected!")
         self.quit()
     gobject.timeout_add(20*1000, check_connection_timeout)
示例#5
0
    def __init__(self, conn, opts):
        GLibXpraClient.__init__(self, conn, opts)

        def check_kicked_out(*args):
            log.error(
                "BUG: illegal command did not get us kicked out: we are still connected!"
            )
            self.quit()

        gobject.timeout_add(5 * 1000, check_kicked_out)
示例#6
0
    def __init__(self, conn, opts):
        GLibXpraClient.__init__(self, conn, opts)

        def check_connection_dead(*args):
            self.send(["irrelevant"])

        gobject.timeout_add(1000, check_connection_dead)

        def check_connection_timeout(*args):
            log.error(
                "BUG: packet size failsafe did not fire: we are still connected!"
            )
            self.quit()

        gobject.timeout_add(20 * 1000, check_connection_timeout)
示例#7
0
 def quit(self, *args):
     log.info("server correctly terminated the connection")
     GLibXpraClient.quit(self)
示例#8
0
 def send_hello(self, challenge_response=None):
     GLibXpraClient.send_hello(self, challenge_response)
     self._protocol._queue_write("PS00000000000006l201234567890123456789")
     gobject.timeout_add(1000, self.try_sending_again)
示例#9
0
 def quit(self, *args):
     log.info("server correctly terminated the connection")
     GLibXpraClient.quit(self)
示例#10
0
 def send_hello(self, challenge_response=None):
     GLibXpraClient.send_hello(self, challenge_response)
     self._queue_write("PS00000000000006l201234567890123456789")
     gobject.timeout_add(1000, self.try_sending_again)