Udostępnij za pośrednictwem


IcmpV4Statistics.TimestampRequestsSent Właściwość

Definicja

Pobiera liczbę wysłanych komunikatów o sygnaturze czasowej protokołu INTERNET Control Message Protocol w wersji 4 (ICMPv4).

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

Wartość właściwości

Wartość Int64 określająca łączną liczbę wysłanych komunikatów żądania znacznika czasu.

Przykłady

Poniższy przykład przedstawia wartość tej właściwości.

void ShowTimestampData()
{
   IPGlobalProperties ^ properties = IPGlobalProperties::GetIPGlobalProperties();
   IcmpV4Statistics ^ statistics = properties->GetIcmpV4Statistics();
   Console::WriteLine( "  Timestamp Requests .................. Sent: {0,-10}   Received: {1,-10}", 
      statistics->TimestampRequestsSent, 
      statistics->TimestampRequestsReceived );
   Console::WriteLine( "  Timestamp Replies ................... Sent: {0,-10}   Received: {1,-10}", 
      statistics->TimestampRepliesSent, 
      statistics->TimestampRepliesReceived );
}
public static void ShowTimestampData()
{
    IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
    IcmpV4Statistics statistics = properties.GetIcmpV4Statistics();
    Console.WriteLine("  Timestamp Requests .................. Sent: {0,-10}   Received: {1,-10}",
        statistics.TimestampRequestsSent, statistics.TimestampRequestsReceived);
    Console.WriteLine("  Timestamp Replies ................... Sent: {0,-10}   Received: {1,-10}",
        statistics.TimestampRepliesSent, statistics.TimestampRepliesReceived);
}
Public Shared Sub ShowTimestampData() 
    Dim properties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
    Dim statistics As IcmpV4Statistics = properties.GetIcmpV4Statistics()
    Console.WriteLine("  Timestamp Requests .................. Sent: {0,-10}   Received: {1,-10}", statistics.TimestampRequestsSent, statistics.TimestampRequestsReceived)
    Console.WriteLine("  Timestamp Replies ................... Sent: {0,-10}   Received: {1,-10}", statistics.TimestampRepliesSent, statistics.TimestampRepliesReceived)

End Sub

Uwagi

Komunikat Żądanie sygnatury czasowej powoduje, że komputer odbierający wysyła odpowiedź sygnatury czasowej z powrotem do komputera źródłowego. Te komunikaty służą do mierzenia szybkości transmisji w sieci.

Dotyczy