IcmpV4Statistics.EchoRepliesSent 속성

정의

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

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

속성 값

Int64 전송된 ICMP Echo Reply 메시지의 총 수를 지정하는 값입니다.

예제

다음 예제에서는이 속성의 값을 표시 합니다.

public static void ShowIcmpV4EchoData()
{
    IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
    IcmpV4Statistics statistics = properties.GetIcmpV4Statistics();
    Console.WriteLine("  Echo Requests ....................... Sent: {0,-10}   Received: {1,-10}",
        statistics.EchoRequestsSent, statistics.EchoRequestsReceived);
    Console.WriteLine("  Echo Replies ........................ Sent: {0,-10}   Received: {1,-10}",
        statistics.EchoRepliesSent, statistics.EchoRepliesReceived);
}
Public Shared Sub ShowIcmpV4EchoData() 
    Dim properties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
    Dim statistics As IcmpV4Statistics = properties.GetIcmpV4Statistics()
    Console.WriteLine("  Echo Requests ....................... Sent: {0,-10}   Received: {1,-10}", statistics.EchoRequestsSent, statistics.EchoRequestsReceived)
    Console.WriteLine("  Echo Replies ........................ Sent: {0,-10}   Received: {1,-10}", statistics.EchoRepliesSent, statistics.EchoRepliesReceived)

End Sub

설명

Echo Request 및 Echo Reply 메시지를 사용하면 컴퓨터가 네트워크의 원격 컴퓨터에서 ICMP 응답을 요청할 수 있습니다. 이 기능은 종종 원격 주소의 유효성을 확인하는 데 사용됩니다.

적용 대상