Class MqttClientTcpOptions
- Namespace
- Azure.Iot.Operations.Protocol.Models
- Assembly
- Azure.Iot.Operations.Protocol.dll
public sealed class MqttClientTcpOptions : IMqttClientChannelOptions
- Inheritance
-
MqttClientTcpOptions
- Implements
- Inherited Members
Constructors
MqttClientTcpOptions(string, int)
public MqttClientTcpOptions(string host, int port)
Parameters
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?
Host
public string Host { get; set; }
Property Value
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
public int Port { get; set; }
Property Value
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
TlsOptions
public MqttClientTlsOptions TlsOptions { get; set; }