You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

18 lines
497 B

  1. using System;
  2. using System.Threading;
  3. using System.Threading.Tasks;
  4. namespace MQTTnet.Channel
  5. {
  6. public interface IMqttChannel : IDisposable
  7. {
  8. string Endpoint { get; }
  9. Task ConnectAsync(CancellationToken cancellationToken);
  10. Task DisconnectAsync();
  11. Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken);
  12. Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken);
  13. }
  14. }