Udostępnij przez


IcmpV6Statistics.NeighborAdvertisementsSent Właściwość

Definicja

Pobiera liczbę wysłanych komunikatów anonsowych sąsiadów protokołu Internet Control Message Protocol w wersji 6 (ICMPv6).

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

Wartość właściwości

Wartość Int64 określająca łączną liczbę wysłanych komunikatów anonsowych sąsiadów.

Przykłady

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

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

Uwagi

Odnajdywanie sąsiadów to proces, w którym komputery hosta i routery mogą określać adresy dla sąsiadów znanych z połączeń udostępnionych. Część tego procesu odnajdywania odbywa się przy użyciu komunikatów ICMP o nazwie Sąsiedzi nakłaniania i anonsów sąsiadów. Komunikaty dotyczące nakłaniania sąsiadów są wysyłane w celu odnalezienia adresu warstwy łącza sąsiada lub sprawdzenia, czy sąsiad jest nadal dostępny za pośrednictwem buforowanego adresu warstwy linków. Reklama sąsiada zawierająca informacje o adresie jest wysyłana w odpowiedzi na żądanie lub ogłaszania zmiany adresu.

Dotyczy