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()
 def server_start(*args):
     ss = SimpleServer()
     ss.init(loop_exit, os.path.expanduser(sockfile))
Esempio n. 3
0
 def server_start(*args):
     ss = SimpleServer()
     ss.init(loop_exit, os.path.expanduser(sockfile))