Bagikan melalui


IcmpV4Statistics Kelas

Definisi

Menyediakan data statistik Protokol Pesan Kontrol Internet untuk IPv4 (ICMPv4) untuk komputer lokal.

public ref class IcmpV4Statistics abstract
public abstract class IcmpV4Statistics
type IcmpV4Statistics = class
Public MustInherit Class IcmpV4Statistics
Warisan
IcmpV4Statistics

Contoh

Contoh berikut menampilkan statistik ICMPv4 saat ini.

void ShowIcmpV4Statistics()
{
   IPGlobalProperties ^ properties = IPGlobalProperties::GetIPGlobalProperties();
   IcmpV4Statistics ^ stat = properties->GetIcmpV4Statistics();
   Console::WriteLine( "ICMP V4 Statistics:" );
   Console::WriteLine( "  Messages ............................ Sent: {0,-10}   Received: {1,-10}", stat->MessagesSent, stat->MessagesReceived );
   Console::WriteLine( "  Errors .............................. Sent: {0,-10}   Received: {1,-10}", stat->ErrorsSent, stat->ErrorsReceived );
   Console::WriteLine( "  Echo Requests ....................... Sent: {0,-10}   Received: {1,-10}", stat->EchoRequestsSent, stat->EchoRequestsReceived );
   Console::WriteLine( "  Echo Replies ........................ Sent: {0,-10}   Received: {1,-10}", stat->EchoRepliesSent, stat->EchoRepliesReceived );
   Console::WriteLine( "  Destination Unreachables ............ Sent: {0,-10}   Received: {1,-10}", stat->DestinationUnreachableMessagesSent, stat->DestinationUnreachableMessagesReceived );
   Console::WriteLine( "  Source Quenches ..................... Sent: {0,-10}   Received: {1,-10}", stat->SourceQuenchesSent, stat->SourceQuenchesReceived );
   Console::WriteLine( "  Redirects ........................... Sent: {0,-10}   Received: {1,-10}", stat->RedirectsSent, stat->RedirectsReceived );
   Console::WriteLine( "  TimeExceeded ........................ Sent: {0,-10}   Received: {1,-10}", stat->TimeExceededMessagesSent, stat->TimeExceededMessagesReceived );
   Console::WriteLine( "  Parameter Problems .................. Sent: {0,-10}   Received: {1,-10}", stat->ParameterProblemsSent, stat->ParameterProblemsReceived );
   Console::WriteLine( "  Timestamp Requests .................. Sent: {0,-10}   Received: {1,-10}", stat->TimestampRequestsSent, stat->TimestampRequestsReceived );
   Console::WriteLine( "  Timestamp Replies ................... Sent: {0,-10}   Received: {1,-10}", stat->TimestampRepliesSent, stat->TimestampRepliesReceived );
   Console::WriteLine( "  Address Mask Requests ............... Sent: {0,-10}   Received: {1,-10}", stat->AddressMaskRequestsSent, stat->AddressMaskRequestsReceived );
   Console::WriteLine( "  Address Mask Replies ................ Sent: {0,-10}   Received: {1,-10}", stat->AddressMaskRepliesSent, stat->AddressMaskRepliesReceived );
   Console::WriteLine( "" );
}
public static void ShowIcmpV4Statistics()
{
    IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
    IcmpV4Statistics stat = properties.GetIcmpV4Statistics();
    Console.WriteLine("ICMP V4 Statistics:");

    Console.WriteLine("  Messages ............................ Sent: {0,-10}   Received: {1,-10}",
        stat.MessagesSent, stat.MessagesReceived);
    Console.WriteLine("  Errors .............................. Sent: {0,-10}   Received: {1,-10}",
        stat.ErrorsSent, stat.ErrorsReceived);

    Console.WriteLine("  Echo Requests ....................... Sent: {0,-10}   Received: {1,-10}",
        stat.EchoRequestsSent, stat.EchoRequestsReceived);
    Console.WriteLine("  Echo Replies ........................ Sent: {0,-10}   Received: {1,-10}",
        stat.EchoRepliesSent, stat.EchoRepliesReceived);

    Console.WriteLine("  Destination Unreachables ............ Sent: {0,-10}   Received: {1,-10}",
        stat.DestinationUnreachableMessagesSent, stat.DestinationUnreachableMessagesReceived);

    Console.WriteLine("  Source Quenches ..................... Sent: {0,-10}   Received: {1,-10}",
        stat.SourceQuenchesSent, stat.SourceQuenchesReceived);

    Console.WriteLine("  Redirects ........................... Sent: {0,-10}   Received: {1,-10}",
        stat.RedirectsSent, stat.RedirectsReceived);

    Console.WriteLine("  TimeExceeded ........................ Sent: {0,-10}   Received: {1,-10}",
        stat.TimeExceededMessagesSent, stat.TimeExceededMessagesReceived);

    Console.WriteLine("  Parameter Problems .................. Sent: {0,-10}   Received: {1,-10}",
        stat.ParameterProblemsSent, stat.ParameterProblemsReceived);

    Console.WriteLine("  Timestamp Requests .................. Sent: {0,-10}   Received: {1,-10}",
        stat.TimestampRequestsSent, stat.TimestampRequestsReceived);
    Console.WriteLine("  Timestamp Replies ................... Sent: {0,-10}   Received: {1,-10}",
        stat.TimestampRepliesSent, stat.TimestampRepliesReceived);

    Console.WriteLine("  Address Mask Requests ............... Sent: {0,-10}   Received: {1,-10}",
        stat.AddressMaskRequestsSent, stat.AddressMaskRequestsReceived);
    Console.WriteLine("  Address Mask Replies ................ Sent: {0,-10}   Received: {1,-10}",
        stat.AddressMaskRepliesSent, stat.AddressMaskRepliesReceived);
    Console.WriteLine("");
}

Keterangan

ICMPv4 adalah serangkaian pesan kesalahan dan informasi untuk digunakan dengan Protokol Internet versi 4. ICMP versi 4 didefinisikan dalam IETF RFC 792.

Kelas ini digunakan oleh GetIcmpV4Statistics metode untuk mengembalikan informasi lalu lintas ICMPv4.

Konstruktor

IcmpV4Statistics()

Menginisialisasi instans baru kelas IcmpV4Statistics.

Properti

AddressMaskRepliesReceived

Mendapatkan jumlah pesan Balasan Address Mask Mask Protokol Kontrol Internet versi 4 (ICMPv4) yang diterima.

AddressMaskRepliesSent

Mendapatkan jumlah pesan Balasan Masker Alamat Internet Control Message Protocol versi 4 (ICMPv4) yang dikirim.

AddressMaskRequestsReceived

Mendapatkan jumlah pesan Permintaan Masker Alamat Protokol Pesan Kontrol Internet versi 4 (ICMPv4) yang diterima.

AddressMaskRequestsSent

Mendapatkan jumlah pesan Permintaan Masker Alamat Protokol Pesan Kontrol Internet versi 4 (ICMPv4) yang dikirim.

DestinationUnreachableMessagesReceived

Mendapatkan jumlah pesan Protokol Pesan Kontrol Internet versi 4 (ICMPv4) yang diterima karena paket yang memiliki alamat yang tidak dapat dijangkau di tujuannya.

DestinationUnreachableMessagesSent

Mendapatkan jumlah pesan Protokol Pesan Kontrol Internet versi 4 (ICMPv4) yang dikirim karena paket yang memiliki alamat yang tidak dapat dijangkau di tujuannya.

EchoRepliesReceived

Mendapatkan jumlah pesan Balasan Echo Protokol Pesan Kontrol Internet versi 4 (ICMPv4) yang diterima.

EchoRepliesSent

Mendapatkan jumlah pesan Balasan Echo Protokol Pesan Kontrol Internet versi 4 (ICMPv4) yang dikirim.

EchoRequestsReceived

Mendapatkan jumlah pesan Permintaan Echo Protokol Pesan Kontrol Internet versi 4 (ICMPv4) yang diterima.

EchoRequestsSent

Mendapatkan jumlah pesan Permintaan Echo Protokol Pesan Kontrol Internet versi 4 (ICMPv4) yang dikirim.

ErrorsReceived

Mendapatkan jumlah pesan kesalahan Protokol Pesan Kontrol Internet versi 4 (ICMPv4) yang diterima.

ErrorsSent

Mendapatkan jumlah pesan kesalahan Protokol Pesan Kontrol Internet versi 4 (ICMPv4) yang dikirim.

MessagesReceived

Mendapatkan jumlah pesan Protokol Pesan Kontrol Internet yang diterima.

MessagesSent

Mendapatkan jumlah pesan Protokol Pesan Kontrol Internet versi 4 (ICMPv4) yang dikirim.

ParameterProblemsReceived

Mendapatkan jumlah pesan Masalah Parameter Protokol Pesan Kontrol Internet versi 4 (ICMPv4) yang diterima.

ParameterProblemsSent

Mendapatkan jumlah pesan Masalah Parameter Protokol Pesan Kontrol Internet versi 4 (ICMPv4) yang dikirim.

RedirectsReceived

Mendapatkan jumlah pesan Pengalihan Protokol Pesan Kontrol Internet versi 4 (ICMPv4) yang diterima.

RedirectsSent

Mendapatkan jumlah pesan Pengalihan Protokol Pesan Kontrol Internet versi 4 (ICMPv4) yang dikirim.

SourceQuenchesReceived

Mendapatkan jumlah pesan Source Quench Protokol Pesan Kontrol Internet versi 4 (ICMPv4) yang diterima.

SourceQuenchesSent

Mendapatkan jumlah pesan Source Quench Protokol Pesan Kontrol Internet versi 4 (ICMPv4) yang dikirim.

TimeExceededMessagesReceived

Mendapatkan jumlah pesan Protokol Pesan Kontrol Internet versi 4 (ICMPv4) Waktu Terlampaui yang diterima.

TimeExceededMessagesSent

Mendapatkan jumlah Pesan Protokol Pesan Kontrol Internet versi 4 (ICMPv4) Waktu Terlampaui pesan yang dikirim.

TimestampRepliesReceived

Mendapatkan jumlah pesan Balasan Tanda Waktu Internet Control Message Protocol versi 4 (ICMPv4) yang diterima.

TimestampRepliesSent

Mendapatkan jumlah pesan Balasan Tanda Waktu Internet Control Message Protocol versi 4 (ICMPv4) yang dikirim.

TimestampRequestsReceived

Mendapatkan jumlah pesan Permintaan Tanda Waktu Internet Control Message Protocol versi 4 (ICMPv4) yang diterima.

TimestampRequestsSent

Mendapatkan jumlah pesan Permintaan Tanda Waktu Internet Control Message Protocol versi 4 (ICMPv4) yang dikirim.

Metode

Equals(Object)

Menentukan apakah objek yang ditentukan sama dengan objek saat ini.

(Diperoleh dari Object)
GetHashCode()

Berfungsi sebagai fungsi hash default.

(Diperoleh dari Object)
GetType()

Mendapatkan instans Type saat ini.

(Diperoleh dari Object)
MemberwiseClone()

Membuat salinan dangkal dari yang saat ini Object.

(Diperoleh dari Object)
ToString()

Mengembalikan string yang mewakili objek saat ini.

(Diperoleh dari Object)

Berlaku untuk