mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-17 01:33:03 +08:00
18 lines
452 B
C#
18 lines
452 B
C#
using System;
|
|
using MQTTnet.Core.Packets;
|
|
using MQTTnet.Core.Protocol;
|
|
|
|
namespace MQTTnet.Core.Server
|
|
{
|
|
public class MqttServerOptions
|
|
{
|
|
public int Port { get; set; } = 1883;
|
|
|
|
public int ConnectionBacklog { get; set; } = 10;
|
|
|
|
public TimeSpan DefaultCommunicationTimeout { get; set; } = TimeSpan.FromSeconds(10);
|
|
|
|
public Func<MqttConnectPacket, MqttConnectReturnCode> ConnectionValidator { get; set; }
|
|
}
|
|
}
|