Example #1
0
def _main():
    #super(self,Client).on_connMade(conn)
    while conn == -1:
        time.sleep(0.005)
    while client.peerObj(conn).getState()!="active":
        time.sleep(0.005)
    packetmq.dprint("Conn Made conn=%s"%conn)
    print("Done!")
    try:
        main()
    except Exception:
        import traceback;traceback.print_exc()
    finally:
        client.stop()
Example #2
0
def _doconn(ccon):
    global conn
    packetmq.dprint("Conn Made conn=%s"%conn)
    conn = ccon