mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-17 01:33:03 +08:00
27 lines
670 B
C#
27 lines
670 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; } = 65536;
|
|
|
|
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();
|
|
}
|
|
}
|
|
}
|