mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-15 17:00:03 +08:00
18 lines
497 B
C#
18 lines
497 B
C#
using System;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MQTTnet.Channel
|
|
{
|
|
public interface IMqttChannel : IDisposable
|
|
{
|
|
string Endpoint { get; }
|
|
|
|
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);
|
|
}
|
|
}
|