TcpStatistics.MaximumTransmissionTimeout Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the maximum retransmission time-out value for Transmission Control Protocol (TCP) segments.
public:
abstract property long MaximumTransmissionTimeout { long get(); };
public abstract long MaximumTransmissionTimeout { get; }
member this.MaximumTransmissionTimeout : int64
Public MustOverride ReadOnly Property MaximumTransmissionTimeout As Long
An Int64 value that specifies the maximum number of milliseconds permitted by a TCP implementation for the retransmission time-out value.
The following code example displays time-out and maximum connection information.
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 );
}
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();
}
Public Shared Sub ShowTcpTimeouts()
Dim properties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
Dim tcpstat As TcpStatistics = 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)
End Sub
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.
منتج | الإصدارات |
---|---|
.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 |
ملاحظات .NET
.NET هو مشروع مصدر مفتوح. حدد رابطًا لتقديم الملاحظات: