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.
 
 
 
 

16 rivejä
463 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. Task ConnectAsync(CancellationToken cancellationToken);
  9. Task DisconnectAsync();
  10. Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken);
  11. Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken);
  12. }
  13. }