点击或拖拽改变大小

WebSocketHelperReceiveFrameWebSocketPayloadAsyncT 方法

从socket接收一条WebSocketMessage片段数据,返回WebSocketMessage的数据信息和是否最后一条数据内容
Receive a piece of WebSocketMessage fragment data from the socket, return the data information of WebSocketMessage and whether the last data content

命名空间:  HslCommunication.WebSocket
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.0.0.0 (12.0.0.0)
语法
public static Task<OperateResult<WebSocketMessage, bool>> ReceiveFrameWebSocketPayloadAsync<T>(
	Func<T, int, int, Action<long, long>, Task<OperateResult<byte[]>>> receive,
	T pipe
)

参数

receive
类型:SystemFuncT, Int32, Int32, ActionInt64, Int64, TaskOperateResultByte
用于接收数据的委托方法之一
pipe
类型:T
当前通信的管道信息

类型参数

T

[缺少 "M:HslCommunication.WebSocket.WebSocketHelper.ReceiveFrameWebSocketPayloadAsync``1(System.Func{``0,System.Int32,System.Int32,System.Action{System.Int64,System.Int64},System.Threading.Tasks.Task{HslCommunication.OperateResult{System.Byte[]}}},``0)" 的 <typeparam name="T"/> 文档]

返回值

类型:TaskOperateResultWebSocketMessage, Boolean
包含websocket消息的结果内容
参见