⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 activetest.java~15~

📁 短信网关发送接受平台。
💻 JAVA~15~
字号:
package smscenter;import cmpp12.*;import com.newpalm.smsgwapi.*;import com.newpalm.log.BatchLog;/** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2004</p> * <p>Company: </p> * @author unascribed * @version 1.0 */import java.io.*;public class ActiveTest extends Engine{    private BufferedOutputStream bo = null;    public ActiveTest() {        super("ActiveTest");        setDaemon(true);    }    public ActiveTest(OutputStream os){        super("ActiveTest");        setDaemon(true);        bo = new BufferedOutputStream(os);    }    public void run(){        String activeTest = "<CMPP_ACTIVE_TEST></CMPP_ACTIVE_TEST>";        byte[] bytes = null;        bytes = activeTest.getBytes() ;        while(isRunning()   ){            if(Config.IfConnected){                try{                    bo.write(bytes) ;                }catch(Exception e){                    e.printStackTrace() ;                }            }            try{                sleep(1000*5);            }catch(Exception e){                e.printStackTrace() ;            }        }    }    public static void main(String[] args) {        ActiveTest activeTest1 = new ActiveTest();    }}

⌨️ 快捷键说明

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