on_response Event
Fired when a response packet is received.
Syntax
class PingResponseEventParams(object): @property def request_id() -> int: ... @property def response_source() -> str: ... @property def response_status() -> str: ... @property def response_time() -> int: ... # In class Ping: @property def on_response() -> Callable[[PingResponseEventParams], None]: ... @on_response.setter def on_response(event_hook: Callable[[PingResponseEventParams], None]) -> None: ...
Remarks
The RequestId parameter is used together with the request_id 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.