''

def run(self):

    try:
        self.consoleInst = telnetlib.Telnet(self.host, self.port)
    except Exception:
        self.wsInst.send('\xe6\x9c\x8d\xe5\x8a\xa1\xe5\x99\xa8\xe8\xbf\x9e\xe6\x8e\xa5\xe5\xa4\xb1\xe8\xb4\xa5\xef\xbc\x81\n')
        self.close()
        return
    self.onConnectedToConsole()
    try:
        tlfd = self.consoleInst.fileno()
        wsfd = self.wsInst.protocol.sock.fileno()
        rlist = [tlfd, wsfd]
        while True:
            (rl, wl, xl) = select.select(rlist, [], [], 0.1)
            if (tlfd in rl):
                data = self.consoleInst.read_some()
                if (not data):
                    break
                if (not self.onReceivedConsoleData(data)):
                    break
            if (wsfd in rl):
                data = self.wsInst.read()
                if (data is None):
                    break
                if (len(data) == 0):
                    continue
                if (not self.onReceivedClientData(data)):
                    break
    except:
        sys.excepthook(*sys.exc_info())
    self.close()
    return
    '\n DCTB  DCTB try:\n DCTB  DCTB  DCTB for    message    in    self.wsInst:\n DCTB  DCTB  DCTB  DCTB self.wsInst.send(message)\n DCTB  DCTB except:\n DCTB  DCTB  DCTB sys.excepthook(    *sys.exc_info()    )\n DCTB  DCTB return\n DCTB  DCTB '
