Error Event

This event is fired when the server sends a protocol error message.

Syntax

ANSI (Cross Platform)
virtual int FireError(XMPPErrorEventParams *e);
typedef struct {
int ErrorCode;
const char *Description; int reserved; } XMPPErrorEventParams; Unicode (Windows) virtual INT FireError(XMPPErrorEventParams *e);
typedef struct {
INT ErrorCode;
LPCWSTR Description; INT reserved; } XMPPErrorEventParams;
- (void)onError:(int)errorCode :(NSString*)description;
#define EID_XMPP_ERROR 6

virtual INT IPWORKS_CALL FireError(INT &iErrorCode, LPSTR &lpszDescription);

Remarks

This is fired whenever there is a protocol error. ErrorCode will contain the error code string sent by the server. Description will contain the Xmpp class's interpretation of the code.

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