testmt.java

来自「JAVA实现的短信网关程序」· Java 代码 · 共 42 行

JAVA
42
字号
package sms.PHS;



public class TestMT
    extends Thread {
  public static TestClient cmppclient = null;
  public static String ph = null;

  public TestMT(TestClient cp, String ph) {
    cmppclient = cp;
    this.ph = ph;
  }



  public TestMT(TestClient cp) {
    cmppclient = cp;
    this.ph = "00000";
  }

  public TestMT() {
  }

  public void run() {

    try {
      while (true) {
        if (TestClient.ht.size() > 0) {
          cmppclient.submit( (String) TestClient.ht.remove(0));
        }
      }

    }
    catch (Exception ex) {
    }
  }

  public static void main(String[] args) {
  }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?