cmppcommunicator.java
来自「采用JAVA开发」· Java 代码 · 共 33 行
JAVA
33 行
package com.gctech.cmpp.client;
import java.io.IOException;
import com.gctech.cmpp.msg.SubmitRequest;
import com.gctech.cmpp.msg.DeliverResponse;
public interface CmppCommunicator {
/**
* 重新登录,登录的信息和第一次登录同。
* */
int relogin()throws IOException;
void send( byte[] msg ) throws IOException;
/**登录
* @param host 服务器主机名
* @param port 服务器IP
* @param sourceAddr 这里是SP企业代码.
* @param sharedSecret 认证码
* @param timeout 超时时间
* */
int login(String host, int port,
String sourceAddr, String sharedSecret,
int timeout) throws IOException;
//检测请求
boolean activeTest(int seq) throws IOException ;
//接收消息
byte[] receive() throws IOException ;
//退出.
void quit() throws IOException;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?