Class RaftCluster.UdpConfiguration
Represents configuration of the local cluster node that relies on UDP transport.
Implements
Inherited Members
Namespace: DotNext.Net.Cluster.Consensus.Raft
Assembly: DotNext.Net.Cluster.dll
Syntax
public sealed class UdpConfiguration : RaftCluster.NodeConfiguration, IClusterMemberConfiguration
Constructors
| Improve this Doc View SourceUdpConfiguration(IPEndPoint)
Initializes a new UDP transport settings.
Declaration
public UdpConfiguration(IPEndPoint localNodeHostAddress)
Parameters
Type | Name | Description |
---|---|---|
IPEndPoint | localNodeHostAddress | The address used to listen requests to the local node. |
Properties
| Improve this Doc View SourceClientBacklog
Gets or sets the maximum number of parallel requests that can be initiated by the client.
Declaration
public int ClientBacklog { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
DatagramSize
Gets or sets maximum datagram size, in bytes.
Declaration
public int DatagramSize { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Remarks
Make sure that datagram size matches to MTU if DontFragment is set; otherwise, UDP packets will be dropped. You can use MtuDiscovery to discover allowed MTU size in your network and avoid fragmentation of packets.
DontFragment
Indicates that the IP datagrams can be fragmented.
Declaration
public bool DontFragment { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Remarks
Default value is true.
See Also
| Improve this Doc View SourceLocalEndPoint
Gets or sets local network interface to be used for receiving UDP packets by Raft cluster member clients.
Declaration
public IPEndPoint LocalEndPoint { get; set; }
Property Value
Type | Description |
---|---|
IPEndPoint |
Remarks
This endpoint is not used for initialization of server, only for clients. UDP is connectionless protocol and underlying implementation must know which interface should be used for receiving responses from server through UDP transport. By default, this property listens on all network interfaces and using randomly selected port. For most situations, it's redundant and unsafe.