コード例 #1
0
def main():
    init_main("Network Protocol Test Tool")
    mainloop = gobject.MainLoop()
    ss = SimpleServer()
    ss.init(mainloop.quit)
    def start_client(*args):
        sc = SimpleClient()
        sc.init(mainloop.quit, [("hello", ()), ("disconnect", "because we want to")])
        return False
    gobject.timeout_add(1000*1, start_client)
    mainloop.run()
コード例 #2
0
def main():
    init("Network-Test", "Xpra Network Protocol Test Tool")
    mainloop = gobject.MainLoop()
    ss = SimpleServer()
    ss.init(mainloop.quit)

    def start_client(*args):
        sc = SimpleClient()
        sc.init(mainloop.quit, [("hello", ()),
                                ("disconnect", "because we want to")])
        return False

    gobject.timeout_add(1000 * 1, start_client)
    mainloop.run()
コード例 #3
0
 def server_start(*args):
     ss = SimpleServer()
     ss.init(loop_exit, os.path.expanduser(sockfile))
コード例 #4
0
 def server_start(*args):
     ss = SimpleServer()
     ss.init(loop_exit, os.path.expanduser(sockfile))