25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

IMqttServer.cs 630 B

7 년 전
7 년 전
12345678910111213141516171819
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Threading.Tasks;
  4. namespace MQTTnet.Core.Server
  5. {
  6. public interface IMqttServer : IApplicationMessageReceiver, IApplicationMessagePublisher
  7. {
  8. event EventHandler<MqttClientConnectedEventArgs> ClientConnected;
  9. event EventHandler<MqttClientDisconnectedEventArgs> ClientDisconnected;
  10. event EventHandler<MqttServerStartedEventArgs> Started;
  11. IList<ConnectedMqttClient> GetConnectedClients();
  12. void Publish(IEnumerable<MqttApplicationMessage> applicationMessages);
  13. Task StartAsync();
  14. Task StopAsync();
  15. }
  16. }