| NetworkBaseReceiveMqttMessageAsync 方法 (SslStream, Int32, ActionInt64, Int64) | 
 
            接收一条完整的MQTT协议的报文信息,包含控制码和负载数据
            Receive a message of a completed MQTT protocol, including control code and payload data
            
 
        命名空间: 
     HslCommunication.Core.Net
        程序集:
     HslCommunication (在 HslCommunication.dll 中) 版本:12.5.1.0 (12.5.1.0)
 语法
语法protected Task<OperateResult<byte, byte[]>> ReceiveMqttMessageAsync(
	SslStream ssl,
	int timeOut,
	Action<long, long> reportProgress = null
)
Protected Function ReceiveMqttMessageAsync ( 
	ssl As SslStream,
	timeOut As Integer,
	Optional reportProgress As Action(Of Long, Long) = Nothing
) As Task(Of OperateResult(Of Byte, Byte()))
protected:
Task<OperateResult<unsigned char, array<unsigned char>^>^>^ ReceiveMqttMessageAsync(
	SslStream^ ssl, 
	int timeOut, 
	Action<long long, long long>^ reportProgress = nullptr
)
member ReceiveMqttMessageAsync : 
        ssl : SslStream * 
        timeOut : int * 
        ?reportProgress : Action<int64, int64> 
(* Defaults:
        let _reportProgress = defaultArg reportProgress null
*)
-> Task<OperateResult<byte, byte[]>> 
参数
- ssl
- 类型:System.Net.SecuritySslStream
 [缺少 "M:HslCommunication.Core.Net.NetworkBase.ReceiveMqttMessageAsync(System.Net.Security.SslStream,System.Int32,System.Action{System.Int64,System.Int64})" 的 <param name="ssl"/> 文档] 
- timeOut
- 类型:SystemInt32
 超时时间
- reportProgress (Optional)
- 类型:SystemActionInt64, Int64
 进度报告,第一个参数是已完成的字节数量,第二个参数是总字节数量。
返回值
类型:
TaskOperateResultByte, 
Byte结果数据内容
 参见
参见