TcpStatistics.MaximumTransmissionTimeout Properti
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Mendapatkan nilai batas waktu transmisi ulang maksimum untuk segmen Protokol Kontrol Transmisi (TCP).
public:
abstract property long MaximumTransmissionTimeout { long get(); };
public abstract long MaximumTransmissionTimeout { get; }
member this.MaximumTransmissionTimeout : int64
Public MustOverride ReadOnly Property MaximumTransmissionTimeout As Long
Nilai Properti
Int64 Nilai yang menentukan jumlah maksimum milidetik yang diizinkan oleh implementasi TCP untuk nilai waktu habis transmisi ulang.
Contoh
Contoh kode berikut menampilkan waktu habis dan informasi koneksi maksimum.
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
Keterangan
TCP memulai timer transmisi ulang ketika setiap segmen keluar diteruskan ke lapisan jaringan (IP). Jika tidak ada pengakuan yang diterima untuk data di segmen sebelum timer kedaluwarsa, segmen akan ditransmisikan ulang. Timer dapat diatur ke nilai apa pun antara MinimumTransmissionTimeout nilai dan MaximumTransmissionTimeout nilai.