IcmpV4Statistics 클래스

정의

로컬 컴퓨터에 대한 ICMPv4(IPv4용 Internet Control Message Protocol) 통계 데이터를 제공합니다.

public ref class IcmpV4Statistics abstract
public abstract class IcmpV4Statistics
type IcmpV4Statistics = class
Public MustInherit Class IcmpV4Statistics
상속
IcmpV4Statistics

예제

다음 예제에서는 현재 ICMPv4 통계를 표시합니다.

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("");
}

설명

ICMPv4는 인터넷 프로토콜 버전 4에서 사용할 오류 및 정보 메시지 집합입니다. ICMP 버전 4는 IETF RFC 792에 정의되어 있습니다.

이 클래스는 메서드에서 GetIcmpV4Statistics ICMPv4 트래픽 정보를 반환하는 데 사용됩니다.

생성자

IcmpV4Statistics()

IcmpV4Statistics 클래스의 새 인스턴스를 초기화합니다.

속성

AddressMaskRepliesReceived

받은 ICMPv4(Internet Control Message Protocol 버전 4) Address Mask Reply 메시지의 수를 가져옵니다.

AddressMaskRepliesSent

보낸 ICMPv4(Internet Control Message Protocol 버전 4) Address Mask Reply 메시지의 수를 가져옵니다.

AddressMaskRequestsReceived

받은 ICMPv4(Internet Control Message Protocol 버전 4) Address Mask Request 메시지의 수를 가져옵니다.

AddressMaskRequestsSent

보낸 ICMPv4(Internet Control Message Protocol 버전 4) Address Mask Request 메시지의 수를 가져옵니다.

DestinationUnreachableMessagesReceived

패킷의 대상 주소에 연결할 수 없기 때문에 받은 ICMPv4(Internet Control Message Protocol 버전 4) 메시지의 수를 가져옵니다.

DestinationUnreachableMessagesSent

패킷의 대상 주소에 연결할 수 없기 때문에 보낸 ICMPv4(Internet Control Message Protocol 버전 4) 메시지의 수를 가져옵니다.

EchoRepliesReceived

받은 ICMPv4(Internet Control Message Protocol 버전 4) Echo Reply 메시지의 수를 가져옵니다.

EchoRepliesSent

보낸 ICMPv4(Internet Control Message Protocol 버전 4) Echo Reply 메시지의 수를 가져옵니다.

EchoRequestsReceived

받은 ICMPv4(Internet Control Message Protocol 버전 4) Echo Request 메시지의 수를 가져옵니다.

EchoRequestsSent

보낸 ICMPv4(Internet Control Message Protocol 버전 4) Echo Request 메시지의 수를 가져옵니다.

ErrorsReceived

받은 ICMPv4(Internet Control Message Protocol 버전 4) 오류 메시지의 수를 가져옵니다.

ErrorsSent

보낸 ICMPv4(Internet Control Message Protocol 버전 4) 오류 메시지의 수를 가져옵니다.

MessagesReceived

받은 ICMP(Internet Control Message Protocol) 메시지의 수를 가져옵니다.

MessagesSent

보낸 ICMPv4(Internet Control Message Protocol 버전 4) 메시지의 수를 가져옵니다.

ParameterProblemsReceived

받은 ICMPv4(Internet Control Message Protocol 버전 4) Parameter Problem 메시지의 수를 가져옵니다.

ParameterProblemsSent

보낸 ICMPv4(Internet Control Message Protocol 버전 4) Parameter Problem 메시지의 수를 가져옵니다.

RedirectsReceived

받은 ICMPv4(Internet Control Message Protocol 버전 4) Redirect 메시지의 수를 가져옵니다.

RedirectsSent

보낸 ICMPv4(Internet Control Message Protocol 버전 4) Redirect 메시지의 수를 가져옵니다.

SourceQuenchesReceived

받은 ICMPv4(Internet Control Message Protocol 버전 4) Source Quench 메시지의 수를 가져옵니다.

SourceQuenchesSent

보낸 ICMPv4(Internet Control Message Protocol 버전 4) Source Quench 메시지의 수를 가져옵니다.

TimeExceededMessagesReceived

받은 ICMPv4(Internet Control Message Protocol 버전 4) Time Exceeded 메시지의 수를 가져옵니다.

TimeExceededMessagesSent

보낸 ICMPv4(Internet Control Message Protocol 버전 4) Time Exceeded 메시지의 수를 가져옵니다.

TimestampRepliesReceived

받은 ICMPv4(Internet Control Message Protocol 버전 4) Timestamp Reply 메시지의 수를 가져옵니다.

TimestampRepliesSent

보낸 ICMPv4(Internet Control Message Protocol 버전 4) Timestamp Reply 메시지의 수를 가져옵니다.

TimestampRequestsReceived

받은 ICMPv4(Internet Control Message Protocol 버전 4) Timestamp Request 메시지의 수를 가져옵니다.

TimestampRequestsSent

보낸 ICMPv4(Internet Control Message Protocol 버전 4) Timestamp Request 메시지의 수를 가져옵니다.

메서드

Equals(Object)

지정된 개체가 현재 개체와 같은지 확인합니다.

(다음에서 상속됨 Object)
GetHashCode()

기본 해시 함수로 작동합니다.

(다음에서 상속됨 Object)
GetType()

현재 인스턴스의 Type을 가져옵니다.

(다음에서 상속됨 Object)
MemberwiseClone()

현재 Object의 단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)

적용 대상