Response Event
Fired when a response packet is received.
Syntax
ANSI (Cross Platform) virtual int FireResponse(PingResponseEventParams *e);
typedef struct {
int RequestId;
const char *ResponseSource;
const char *ResponseStatus;
int ResponseTime; int reserved; } PingResponseEventParams; Unicode (Windows) virtual INT FireResponse(PingResponseEventParams *e);
typedef struct {
INT RequestId;
LPCWSTR ResponseSource;
LPCWSTR ResponseStatus;
INT ResponseTime; INT reserved; } PingResponseEventParams;
- (void)onResponse:(int)requestId :(NSString*)responseSource :(NSString*)responseStatus :(int)responseTime;
#define EID_PING_RESPONSE 2 virtual INT IPWORKS_CALL FireResponse(INT &iRequestId, LPSTR &lpszResponseSource, LPSTR &lpszResponseStatus, INT &iResponseTime);
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.