mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-16 09:13:02 +08:00
27 lines
669 B
C#
27 lines
669 B
C#
using System.Net.Sockets;
|
|
|
|
namespace MQTTnet.Client.Options
|
|
{
|
|
public class MqttClientTcpOptions : IMqttClientChannelOptions
|
|
{
|
|
public string Server { get; set; }
|
|
|
|
public int? Port { get; set; }
|
|
|
|
public int BufferSize { get; set; } = 8192;
|
|
|
|
public bool? DualMode { get; set; }
|
|
|
|
public bool NoDelay { get; set; } = true;
|
|
|
|
public AddressFamily AddressFamily { get; set; } = AddressFamily.Unspecified;
|
|
|
|
public MqttClientTlsOptions TlsOptions { get; set; } = new MqttClientTlsOptions();
|
|
|
|
public override string ToString()
|
|
{
|
|
return Server + ":" + this.GetPort();
|
|
}
|
|
}
|
|
}
|