MqttHelperReceiveMqttRemainingLengthAsyncT 方法 (FuncT, Int32, Int32, ActionInt64, Int64, TaskOperateResultByte, T) |
基于MQTT协议,从网络套接字中接收剩余的数据长度
Receives the remaining data length from the network socket based on the MQTT protocol
命名空间:
HslCommunication.MQTT
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static Task<OperateResult<int>> ReceiveMqttRemainingLengthAsync<T>(
Func<T, int, int, Action<long, long>, Task<OperateResult<byte[]>>> receive,
T pipe
)
Public Shared Function ReceiveMqttRemainingLengthAsync(Of T) (
receive As Func(Of T, Integer, Integer, Action(Of Long, Long), Task(Of OperateResult(Of Byte()))),
pipe As T
) As Task(Of OperateResult(Of Integer))
public:
generic<typename T>
static Task<OperateResult<int>^>^ ReceiveMqttRemainingLengthAsync(
Func<T, int, int, Action<long long, long long>^, Task<OperateResult<array<unsigned char>^>^>^>^ receive,
T pipe
)
static member ReceiveMqttRemainingLengthAsync :
receive : Func<'T, int, int, Action<int64, int64>, Task<OperateResult<byte[]>>> *
pipe : 'T -> Task<OperateResult<int>>
参数
- receive
- 类型:SystemFuncT, Int32, Int32, ActionInt64, Int64, TaskOperateResultByte
接收数据的方法 - pipe
- 类型:T
实际的管道对象信息
类型参数
- T
- 当前的管道类型
返回值
类型:
TaskOperateResultInt32网络中剩余的长度数据
参见