Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
SGIP.java
Package: sgip_java.rar [view]
Upload User: leafage163
Upload Date: 2022-08-08
Package Size: 15k
Code Size: 1k
Category:
Java Develop
Development Platform:
Java
- package com.zzxy.shortmessage.SGIP;
- public class SGIP {
- //消息ID定义
- public static final int SGIP_BIND =0x00000001; //SP用该消息向SMG发出建立连接的请求
- public static final int SGIP_BIND_RESP =0x80000001; //SP对Bind命令的应答
- public static final int SGIP_UNBIND =0x00000002; //SP用该消息向SMG通知将要断开现有的连接
- public static final int SGIP_UNBIND_RESP =0x80000002; //SP对Unbind命令的应答
- public static final int SGIP_SUBMIT =0x00000003; //SP用该消息向SMG请求发送短消息
- public static final int SGIP_SUBMIT_RESP =0x80000003; //SMG对Submit命令的应答
- public static final int SGIP_DELIVER =0x00000004; //SMG发送一条短消息到SP
- public static final int SGIP_DELIVER_RESP =0x80000004; //SP用该消息对从SMG接收到的Deliver命令作出应答
- public static final int SGIP_REPORT =0x00000005; //SMG用该命令通知SP一条Submit命令所发送的MT当前结果
- public static final int SGIP_REPORT_RESP =0x80000005; //SP对从SMG接收到的Report命令作出应答
- public static final int MaxSubmit=100; //一次提交的最大短消息数,用于群发
- //消息头
- public final int Message_Length=0; //消息的总长度(字节) 4 Integer
- public final int Command_ID=0; //命令ID 4 Integer
- public final int Sequence_Number=0; //序列号 12 Integer
- //socket state
- public String sckState=null;
- }