Response Event

Fired when a response packet is received.

Syntax

public event OnResponseHandler OnResponse;

public delegate void OnResponseHandler(object sender, PingResponseEventArgs e);

public class PingResponseEventArgs : EventArgs {
  public int RequestId { get; }
  public string ResponseSource { get; }
  public string ResponseStatus { get; }
  public int ResponseTime { get; }
}
Public Event OnResponse As OnResponseHandler

Public Delegate Sub OnResponseHandler(sender As Object, e As PingResponseEventArgs)

Public Class PingResponseEventArgs Inherits EventArgs
  Public ReadOnly Property RequestId As Integer
  Public ReadOnly Property ResponseSource As String
  Public ReadOnly Property ResponseStatus As String
  Public ReadOnly Property ResponseTime As Integer
End Class

Remarks

The RequestId parameter is used together with the RequestId property to match requests with responses.

ResponseStatus is set to "OK" for normal operation, or it contains an error string such as "Network unreachable", "Host unreachable", etc.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 .NET Edition - Version 20.0 [Build 8307]