TcpStatistics.MaximumTransmissionTimeout Property

Definition

Gets the maximum retransmission time-out value for Transmission Control Protocol (TCP) segments.

C#
public abstract long MaximumTransmissionTimeout { get; }

Property Value

An Int64 value that specifies the maximum number of milliseconds permitted by a TCP implementation for the retransmission time-out value.

Examples

The following code example displays time-out and maximum connection information.

C#
public static void ShowTcpTimeouts()
{
    IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
    TcpStatistics tcpstat = properties.GetTcpIPv4Statistics();

    Console.WriteLine("  Minimum Transmission Timeout............. : {0}",
        tcpstat.MinimumTransmissionTimeout);
    Console.WriteLine("  Maximum Transmission Timeout............. : {0}",
        tcpstat.MaximumTransmissionTimeout);
    Console.WriteLine("  Maximum connections ............. : {0}",
        tcpstat.MaximumConnections);
    Console.WriteLine();
}

Remarks

TCP starts a retransmission timer when each outbound segment is passed to the network layer (IP). If no acknowledgement is received for the data in the segment before the timer expires, the segment is retransmitted. The timer can be set to any value between the MinimumTransmissionTimeout value and the MaximumTransmissionTimeout value.

Applies to

منتج الإصدارات
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1