All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.minlia.cross.thread.CmdThread Maven / Gradle / Ivy

There is a newer version: 1.0.9.RELEASE
Show newest version
package com.minlia.cross.thread;

import com.minlia.cross.message.MessageReceiver;
import com.minlia.cross.client.NgrokClient;
import javax.net.ssl.SSLSocket;

public class CmdThread extends Thread {
  SSLSocket sock;
  NgrokClient ngrokcli;
  public CmdThread(NgrokClient ngrokcli,SSLSocket s) {
    super();
    this.sock = s;
    this.ngrokcli=ngrokcli;
  }

  public void run() {
    while (ngrokcli.trfalg) {
      // 监听
      MessageReceiver msg = new MessageReceiver(this.ngrokcli);
      msg.unpack(sock);
    }

  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy