public class NetPushClient extends NetworkXBase
threadCoreSocket, fileCacheSize, LogNet, Token| 构造器和说明 |
|---|
NetPushClient(String ipAddress,
int port,
String key)
实例化一个发布订阅类的客户端,需要指定ip地址,端口,及订阅关键字
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
ClosePush()
关闭消息推送的界面
|
OperateResult |
CreatePush(ActionOperateExTwo<NetPushClient,String> pushCallBack)
创建数据推送服务
|
protected void |
DataProcessingCenter(AppSession session,
int protocol,
int customer,
byte[] content)
数据处理中心,应该继承重写
|
String |
getKeyWord()
本客户端的关键字
|
protected void |
SocketReceiveException(AppSession session)
接收出错的时候进行处理
|
String |
toString()
获取本对象的字符串表示形式
|
AppSessionRemoteClose, BeginReceiveBackground, DeleteFileByName, PreprocessFolderName, SendFileStreamToSocketCheckRemoteToken, CloseSocket, CreateSocketAndConnect, CreateSocketAndConnect, CreateSocketAndConnect, ReadStream, Receive, Receive, Receive, ReceiveAndCheckBytes, ReceiveByMessage, ReceiveByMessage, ReceiveBytesContentFromSocket, ReceiveBytesContentFromSocket, ReceiveCommandLineFromSocket, ReceiveCommandLineFromSocket, ReceiveCommandLineFromSocket, ReceiveCommandLineFromSocket, ReceiveFrameWebSocketPayload, ReceiveHslMessage, ReceiveMqttMessage, ReceiveRedisCommand, ReceiveRedisCommandString, ReceiveStringArrayContentFromSocket, ReceiveStringArrayContentFromSocket, ReceiveStringContentFromSocket, ReceiveStringContentFromSocket, ReceiveWebSocketPayload, Send, Send, SendAccountAndCheckReceive, SendBaseAndCheckReceive, SendBytesAndCheckReceive, SendStreamToSocket, SendStringAndCheckReceive, SendStringAndCheckReceive, ThreadPoolCheckTimeOut, WriteStream, WriteStreamFromSocketprotected void DataProcessingCenter(AppSession session, int protocol, int customer, byte[] content)
NetworkXBaseDataProcessingCenter 在类中 NetworkXBasesession - 连接状态protocol - 协议头customer - 用户自定义content - 数据内容protected void SocketReceiveException(AppSession session)
NetworkXBaseSocketReceiveException 在类中 NetworkXBasesession - 会话内容public OperateResult CreatePush(ActionOperateExTwo<NetPushClient,String> pushCallBack)
pushCallBack - 触发数据推送的委托public void ClosePush()
public String getKeyWord()
public String toString()
toString 在类中 NetworkXBaseCopyright © 2022. All rights reserved.