MqttHelperReceiveMqttRemainingLengthT 方法 (FuncT, Int32, Int32, ActionInt64, Int64, OperateResultByte, 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 OperateResult<int> ReceiveMqttRemainingLength<T>(
Func<T, int, int, Action<long, long>, OperateResult<byte[]>> receive,
T pipe
)
Public Shared Function ReceiveMqttRemainingLength(Of T) (
receive As Func(Of T, Integer, Integer, Action(Of Long, Long), OperateResult(Of Byte())),
pipe As T
) As OperateResult(Of Integer)
public:
generic<typename T>
static OperateResult<int>^ ReceiveMqttRemainingLength(
Func<T, int, int, Action<long long, long long>^, OperateResult<array<unsigned char>^>^>^ receive,
T pipe
)
static member ReceiveMqttRemainingLength :
receive : Func<'T, int, int, Action<int64, int64>, OperateResult<byte[]>> *
pipe : 'T -> OperateResult<int>
参数
- receive
- 类型:SystemFuncT, Int32, Int32, ActionInt64, Int64, OperateResultByte
接收数据的方法 - pipe
- 类型:T
实际的管道对象信息
类型参数
- T
- 当前的管道类型
返回值
类型:
OperateResultInt32网络中剩余的长度数据
参见