📄 cmppcommunicator.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -