mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-16 17:23:04 +08:00
24 lines
630 B
C#
24 lines
630 B
C#
using System.Net;
|
|
|
|
namespace MQTTnet.Server
|
|
{
|
|
public abstract class MqttServerTcpEndpointBaseOptions
|
|
{
|
|
public bool IsEnabled { get; set; }
|
|
|
|
public int Port { get; set; }
|
|
|
|
public int ConnectionBacklog { get; set; } = 10;
|
|
|
|
public bool NoDelay { get; set; } = true;
|
|
|
|
public IPAddress BoundInterNetworkAddress { get; set; } = IPAddress.Any;
|
|
|
|
public IPAddress BoundInterNetworkV6Address { get; set; } = IPAddress.IPv6Any;
|
|
|
|
/// <summary>
|
|
/// This requires admin permissions on Linux.
|
|
/// </summary>
|
|
public bool ReuseAddress { get; set; }
|
|
}
|
|
} |