Class MqttClientTcpOptions
public sealed class MqttClientTcpOptions : IMqttClientChannelOptions
- Inheritance
-
MqttClientTcpOptions
- Implements
- Inherited Members
Constructors
MqttClientTcpOptions()
public MqttClientTcpOptions()
Properties
AddressFamily
public AddressFamily AddressFamily { get; set; }
Property Value
BufferSize
public int BufferSize { get; set; }
Property Value
DualMode
Gets or sets whether the underlying socket should run in dual mode. Leaving this null will avoid setting this value at socket level. Setting this a value other than null will throw an exception when only IPv4 is supported on the machine.
public bool? DualMode { get; set; }
Property Value
- bool?
LingerState
public LingerOption LingerState { get; set; }
Property Value
LocalEndpoint
Gets the local endpoint (network card) which is used by the client. Set it to null to let the OS select the network card.
public EndPoint LocalEndpoint { get; set; }
Property Value
NoDelay
Enables or disables the Nagle algorithm for the socket. This is only supported for TCP. For other protocol types the value is ignored. Default: true
public bool NoDelay { get; set; }
Property Value
Port
[Obsolete("Use RemoteEndpoint or MqttClientOptionsBuilder instead.")]
public int? Port { get; set; }
Property Value
- int?
ProtocolType
The MQTT transport is usually TCP but when using other endpoint types like unix sockets it must be changed (IP for unix sockets).
public ProtocolType ProtocolType { get; set; }
Property Value
RemoteEndpoint
public EndPoint RemoteEndpoint { get; set; }
Property Value
Server
[Obsolete("Use RemoteEndpoint or MqttClientOptionsBuilder instead.")]
public string Server { get; set; }
Property Value
TlsOptions
public MqttClientTlsOptions TlsOptions { get; set; }
Property Value
Methods
ToString()
public override string ToString()