Bagikan melalui


TcpStatistics.MinimumTransmissionTimeout Properti

Definisi

Mendapatkan nilai batas waktu transmisi ulang minimum untuk segmen Protokol Kendali Transmisi (TCP).

public:
 abstract property long MinimumTransmissionTimeout { long get(); };
public abstract long MinimumTransmissionTimeout { get; }
member this.MinimumTransmissionTimeout : int64
Public MustOverride ReadOnly Property MinimumTransmissionTimeout As Long

Nilai Properti

Int64 Nilai yang menentukan jumlah minimum milidetik yang diizinkan oleh implementasi TCP untuk nilai batas waktu 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 ditransmisikan ulang. Timer Timer dapat diatur ke nilai apa pun antara MinimumTransmissionTimeout nilai dan MaximumTransmissionTimeout nilai.

Berlaku untuk