mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-17 01:33:03 +08:00
16 lines
463 B
C#
16 lines
463 B
C#
using System;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MQTTnet.Channel
|
|
{
|
|
public interface IMqttChannel : IDisposable
|
|
{
|
|
Task ConnectAsync(CancellationToken cancellationToken);
|
|
Task DisconnectAsync();
|
|
|
|
Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken);
|
|
Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken);
|
|
}
|
|
}
|