NetworkBaseReceiveHslMessageAsync 方法 |
接收一条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 Task<OperateResult<int, int, byte[]>> ReceiveHslMessageAsync(
Socket socket
)
Protected Function ReceiveHslMessageAsync (
socket As Socket
) As Task(Of OperateResult(Of Integer, Integer, Byte()))
protected:
Task<OperateResult<int, int, array<unsigned char>^>^>^ ReceiveHslMessageAsync(
Socket^ socket
)
member ReceiveHslMessageAsync :
socket : Socket -> Task<OperateResult<int, int, byte[]>>
参数
- socket
- 类型:System.Net.SocketsSocket
网络套接字
返回值
类型:
TaskOperateResultInt32,
Int32,
Byte接收结果,依次为暗号,用户码,负载数据
参见