• 大小: 4.63MB
    文件类型: .rar
    金币: 2
    下载: 1 次
    发布日期: 2023-09-19
  • 语言: Java
  • 标签: cmpp  java  

资源简介

java实现CMPP3.0源代码,部分注释描述,需要用到CMPP3.0短信网关的可以参考x学习下.(在借鉴他人基础上少量修改注释)

资源截图

代码片段和文件信息

package common.msg.domain;

import java.io.ByteArrayInputStream;
import java.io.DataInputStream;
import java.io.IOException;

import org.apache.log4j.Logger;

/**
 * 
 * 链路检查消息结构定义
 */
public class MsgActiveTestResp extends MsgHead {
private static Logger logger=Logger.getLogger(MsgActiveTestResp.class);
private byte reserved;//
public MsgActiveTestResp(byte[] data){
if(data.length==8+1){
ByteArrayInputStream bins=new ByteArrayInputStream(data);
DataInputStream dins=new DataInputStream(bins);
try {
this.setTotalLength(data.length+4);
this.setCommandId(dins.readInt());
this.setSequenceId(dins.readInt());
this.reserved=dins.readByte();
dins.close();
bins.close();
} catch (IOException e){}
}else{
logger.info(“链路检查解析数据包出错,包长度不一致。长度为:“+data.length);
}
}
public byte getReserved() {
return reserved;
}

public void setReserved(byte reserved) {
this.reserved = reserved;
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        529  2016-03-09 15:38  remindMyCmpp3.0\.classpath

     文件        318  2016-03-09 15:38  remindMyCmpp3.0\.mymetadata

     文件       1758  2016-03-09 17:10  remindMyCmpp3.0\.project

     文件        500  2016-03-09 15:38  remindMyCmpp3.0\.settings\.jsdtscope

     文件        136  2016-03-09 16:20  remindMyCmpp3.0\.settings\org.eclipse.core.resources.prefs

     文件        395  2016-03-09 15:38  remindMyCmpp3.0\.settings\org.eclipse.jdt.core.prefs

     文件        483  2016-03-09 15:38  remindMyCmpp3.0\.settings\org.eclipse.wst.common.component

     文件        252  2016-03-09 15:38  remindMyCmpp3.0\.settings\org.eclipse.wst.common.project.facet.core.xml

     文件         49  2016-03-09 15:38  remindMyCmpp3.0\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2016-03-09 15:38  remindMyCmpp3.0\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件       1039  2016-03-09 19:42  remindMyCmpp3.0\src\common\msg\domain\MsgActiveTestResp.java

     文件        954  2016-03-09 19:42  remindMyCmpp3.0\src\common\msg\domain\MsgCommand.java

     文件       3211  2016-03-09 19:43  remindMyCmpp3.0\src\common\msg\domain\MsgConnect.java

     文件       3432  2016-03-10 10:52  remindMyCmpp3.0\src\common\msg\domain\MsgConnectResp.java

     文件       6882  2016-03-09 19:43  remindMyCmpp3.0\src\common\msg\domain\MsgDeliver.java

     文件       1319  2016-03-09 19:43  remindMyCmpp3.0\src\common\msg\domain\MsgDeliverResp.java

     文件       2370  2016-03-09 19:43  remindMyCmpp3.0\src\common\msg\domain\MsgHead.java

     文件       7777  2016-03-10 09:30  remindMyCmpp3.0\src\common\msg\domain\MsgSubmit.java

     文件       1500  2016-03-10 10:48  remindMyCmpp3.0\src\common\msg\domain\MsgSubmitResp.java

     文件        372  2016-03-10 10:29  remindMyCmpp3.0\src\common\msg\test\TestSms.java

     文件       6270  2016-03-10 10:54  remindMyCmpp3.0\src\common\msg\util\CmppSender.java

     文件        902  2016-03-09 19:44  remindMyCmpp3.0\src\common\msg\util\MsgActivityTimer.java

     文件       1492  2016-03-09 19:44  remindMyCmpp3.0\src\common\msg\util\MsgConfig.java

     文件      18435  2016-03-10 10:53  remindMyCmpp3.0\src\common\msg\util\MsgContainer.java

     文件       4451  2016-03-09 19:44  remindMyCmpp3.0\src\common\msg\util\MsgUtils.java

     文件       3094  2016-03-09 20:03  remindMyCmpp3.0\src\log4j.properties

     文件        921  2016-03-09 20:03  remindMyCmpp3.0\src\log4j.xml

     文件        638  2016-03-09 19:48  remindMyCmpp3.0\src\MsgConfig.properties

     文件        507  2011-10-18 11:31  remindMyCmpp3.0\src\readme.txt

     文件        744  2011-09-06 15:09  remindMyCmpp3.0\src\定时器.txt

............此处省略52个文件信息

评论

共有 条评论