// Token: 0x0600016E RID: 366 RVA: 0x0000D1DC File Offset: 0x0000B3DC public void run() { while (Session_ME2.connected) { try { if (Session_ME2.getKeyComplete) { while (this.sendingMessage.Count > 0) { Message m = this.sendingMessage[0]; Session_ME2.doSendMessage(m); this.sendingMessage.RemoveAt(0); } } try { Thread.Sleep(5); } catch (Exception ex) { Cout.LogError(ex.ToString()); } } catch (Exception) { Res.outz("error send message! "); } } }
// Token: 0x06000160 RID: 352 RVA: 0x0000CDA8 File Offset: 0x0000AFA8 public void doConnect(string host, int port) { Session_ME2.sc = new TcpClient(); Session_ME2.sc.Connect(host, port); Session_ME2.dataStream = Session_ME2.sc.GetStream(); Session_ME2.dis = new BinaryReader(Session_ME2.dataStream, new UTF8Encoding()); Session_ME2.dos = new BinaryWriter(Session_ME2.dataStream, new UTF8Encoding()); new Thread(new ThreadStart(Session_ME2.sender.run)).Start(); Session_ME2.MessageCollector @object = new Session_ME2.MessageCollector(); Cout.LogError("new -----"); Session_ME2.collectorThread = new Thread(new ThreadStart(@object.run)); Session_ME2.collectorThread.Start(); Session_ME2.timeConnected = Session_ME2.currentTimeMillis(); Session_ME2.connecting = false; Session_ME2.doSendMessage(new Message(-27)); }