All Downloads are FREE. Search and download functionalities are using the official Maven repository.

HslCommunication.WebSocket.WebSocketMessage Maven / Gradle / Ivy

Go to download

一个工业物联网的底层架构框架,专注于底层的技术通信及跨平台,跨语言通信功能,实现各种主流的PLC数据读写,实现modbus的各种协议读写等等

There is a newer version: 3.7.0
Show newest version
package HslCommunication.WebSocket;

import HslCommunication.Utilities;

/**
 * websocket 协议下的单个消息的数据对象
* Data object for a single message under the websocket protocol */ public class WebSocketMessage { /** * 是否存在掩码
* Whether a mask exists */ public boolean HasMask = false; /** * 当前的websocket的操作码
* The current websocket opcode */ public int OpCode = 0; /** * 负载数据 */ public byte[] Payload = null; @Override public String toString() { return "WebSocketMessage{" + "HasMask=" + HasMask + ", OpCode=" + OpCode + ", Payload=" + Utilities.getString(Payload, "UTF-8") + '}'; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy