Bagikan melalui


IcmpV6Statistics.NeighborSolicitsReceived Properti

Definisi

Mendapatkan jumlah pesan Permintaan Tetangga Protokol Kontrol Internet versi 6 (ICMPv6) yang diterima.

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

Nilai Properti

Nilai Int64 yang menentukan jumlah total pesan Permintaan Tetangga yang diterima.

Contoh

Contoh berikut menampilkan nilai properti ini.

void ShowIcmpV6NeighborData()
{
   IPGlobalProperties ^ properties = IPGlobalProperties::GetIPGlobalProperties();
   IcmpV6Statistics ^ statistics = properties->GetIcmpV6Statistics();
   Console::WriteLine( "  Advertisements ...................... Sent: {0,-10}   Received: {1,-10}", 
      statistics->NeighborAdvertisementsSent, statistics->NeighborAdvertisementsReceived );
   Console::WriteLine( "  Solicits ............................ Sent: {0,-10}   Received: {1,-10}", 
      statistics->NeighborSolicitsSent, statistics->NeighborSolicitsReceived );
}
public static void ShowIcmpV6NeighborData ()
{
    IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
    IcmpV6Statistics statistics = properties.GetIcmpV6Statistics();
    Console.WriteLine ("  Advertisements ...................... Sent: {0,-10}   Received: {1,-10}",
        statistics.NeighborAdvertisementsSent,statistics.NeighborAdvertisementsReceived);
    Console.WriteLine ("  Solicits ............................ Sent: {0,-10}   Received: {1,-10}",
    statistics.NeighborSolicitsSent, statistics.NeighborSolicitsReceived);
}
Public Shared Sub ShowIcmpV6NeighborData() 
    Dim properties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
    Dim statistics As IcmpV6Statistics = properties.GetIcmpV6Statistics()
    Console.WriteLine("  Advertisements ...................... Sent: {0,-10}   Received: {1,-10}", statistics.NeighborAdvertisementsSent, statistics.NeighborAdvertisementsReceived)
    Console.WriteLine("  Solicits ............................ Sent: {0,-10}   Received: {1,-10}", statistics.NeighborSolicitsSent, statistics.NeighborSolicitsReceived)

End Sub

Keterangan

Penemuan Tetangga adalah proses di mana komputer host dan router dapat menentukan alamat untuk tetangga yang diketahui berada di tautan bersama. Bagian dari proses penemuan ini dicapai menggunakan pesan ICMP yang disebut Permintaan Tetangga dan Iklan Tetangga. Pesan Permintaan Tetangga dikirim untuk menemukan alamat lapisan tautan tetangga atau untuk memverifikasi bahwa tetangga masih dapat dijangkau melalui alamat lapisan tautan yang di-cache. Iklan Tetangga yang berisi informasi alamat dikirim sebagai respons terhadap ajakan atau untuk mengumumkan perubahan alamat.

Berlaku untuk