TcpStatistics.MaximumTransmissionTimeout 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得傳輸控制通訊協定 (TCP) 區段的最大重新傳輸逾時值。
public:
abstract property long MaximumTransmissionTimeout { long get(); };
public abstract long MaximumTransmissionTimeout { get; }
member this.MaximumTransmissionTimeout : int64
Public MustOverride ReadOnly Property MaximumTransmissionTimeout As Long
屬性值
Int64 值,指定 TCP 實作允許之重新傳輸逾時值的最大毫秒數。
範例
下列程式代碼範例會顯示逾時和聯機資訊上限。
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 會啟動重新傳輸定時器, (IP) 。 如果在定時器到期之前,區段中的數據未收到任何通知,則會重新傳輸區段。 定時器可以設定為值與MaximumTransmissionTimeout值之間的MinimumTransmissionTimeout任何值。