mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-20 03:24:33 +08:00
use streams
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
using System.Threading.Tasks;
|
||||
using MQTTnet.Core.Client;
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
namespace MQTTnet.Core.Channel
|
||||
{
|
||||
@@ -9,14 +9,7 @@ namespace MQTTnet.Core.Channel
|
||||
Task ConnectAsync(MqttClientOptions options);
|
||||
|
||||
Task DisconnectAsync();
|
||||
|
||||
Task WriteAsync(byte[] buffer);
|
||||
|
||||
/// <summary>
|
||||
/// get the currently available number of bytes without reading them
|
||||
/// </summary>
|
||||
int Peek();
|
||||
|
||||
Task<ArraySegment<byte>> ReadAsync(int length, byte[] buffer);
|
||||
|
||||
Stream Stream { get; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user