Response Event
Fired when a response packet is received.
Syntax
class PingResponseEventParams { public: int RequestId(); const QString &ResponseSource(); const QString &ResponseStatus(); int ResponseTime(); int EventRetVal(); void SetEventRetVal(int iRetVal); };
// To handle, connect one or more slots to this signal. void Response(PingResponseEventParams *e);
// Or, subclass Ping and override this emitter function. virtual int FireResponse(PingResponseEventParams *e) {...}
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.