NetworkBaseReceiveHslMessage 方法 |
接收一条hsl协议的数据信息,自动解析,解压,解码操作,获取最后的实际的数据,接收结果依次为暗号,用户码,负载数据
Receive a piece of hsl protocol data information, automatically parse, decompress, and decode operations to obtain the last actual data.
The result is a opCode, user code, and payload data in order.
命名空间:
HslCommunication.Core.Net
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 protected OperateResult<int, int, byte[]> ReceiveHslMessage(
Socket socket
)
Protected Function ReceiveHslMessage (
socket As Socket
) As OperateResult(Of Integer, Integer, Byte())
protected:
OperateResult<int, int, array<unsigned char>^>^ ReceiveHslMessage(
Socket^ socket
)
member ReceiveHslMessage :
socket : Socket -> OperateResult<int, int, byte[]>
参数
- socket
- 类型:System.Net.SocketsSocket
网络套接字
返回值
类型:
OperateResultInt32,
Int32,
Byte接收结果,依次为暗号,用户码,负载数据
参见