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

📄 comconstants.java

📁 基于中国网通cngp2.0开发的一个java网关源代码。大家多多公开SP类的网关程序哦
💻 JAVA
字号:
package cn.netjava.cngpclient.connection;import java.util.*;import java.io.*;import cn.netjava.cngpclient.publics.PublicConstants;/** * 网关通信控制常量定义 * 中国网通短信网关客户端--蓝杰实训项目 * @author www.NetJava.cn * */public class ComConstants {	public static String SpId = "90000";	public static String SpName = "90000";	public static int IsmgSendConNum = 2;	public static int IsmgRecvConNum = 2;	public static Hashtable mpcRouteTab;	public static int mpcRouteTabSize = 10;	public static byte Foxsplastversion = 12;	public static int nIsmg_Modi_Flag = 0;	static final int VALID = 0;	static final int INVALID = 1;	static final int SUCCEED = 0;	static final int ERROR_SOCKET = -1;	static final int ERROR_INTERRUPT = -2;	static final int ERROR_DATA = -3;	static final int ERROR_OTHER = -4;	static final int STOP_THREAD = -5;	static final String WORKING = "working";	public static final String NOTCONNECTED = "not connected";	static final String NOTLOGIN = "not login";	static final String NOTACTIVE = "not active";	static final byte RECV_ONLY = 1;	static final byte SEND_ONLY = 0;	static final byte RECV_SEND = 2;	public static final int RUNNING = 1;	public static final int NORUNNING = -1;	public static final int ACTIVE = 1;	public static final int NOACTIVE = -1;	public static final int STOP = 1;	public static final int NOSTOP = 0;	public static int CmppSAVEDATA_SLEEPTIME = 300;	public static int CmppCOMMITDATA_INTSEC = 3000; // (ms)	public static int CmppRESEND_SLEEPTIME = 10000;// 重	public static int CmppRESEND_INTERVAL = 60; // 重	public static int CmppRESEND_COUNT = 5; // 最	public static int CmppRESEND_LIVETIME = 400; //	public static int CmppMAINTANCE_SLEEPTIME = 15000;	public static int CmppRCVSOCK_TIMEOUT = 30000;	public static final int Cmpp_MAX_MSG_LEN = 600;	public static final int Cmpp_MIN_MSG_LEN = 12;	public static final int Cmpp_MAX_NOTACTIVE_SECOND = 2000;	public static int CmppVECTOR_NUM = 5000;	public static int CmppVECTOR_MAXSIZE = 15000;	public static int msgSeqNo = 0;	public static int ShortLen = 50;	public static int mt_number, mo_number, fmo_number, msgid_number;	public static int test_number = 0;	public synchronized static int getSeqNo() {		int temp_SeqNo = ComConstants.fmo_number++;		if (ComConstants.fmo_number >= 100000000)			ComConstants.fmo_number = 1;		return temp_SeqNo;	}	public static void threadSleep(int miniSec) {		try {			Thread.sleep(miniSec);		} catch (InterruptedException e) {		}	}}class RouteInfo {	String sp_id;	String sp_code;	String busi_scope;}

⌨️ 快捷键说明

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