Files
MQTTnet/Source/MQTTnet/Client/Options/MqttClientTcpOptions.cs
T

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();
}
}
}