IQ Event

This event is fired for IQ messages not normally supported by the class.

Syntax

ANSI (Cross Platform)
virtual int FireIQ(XMPPIQEventParams *e);
typedef struct {
const char *Iq;
const char *Id;
const char *From;
const char *IqType;
int Ignore; int reserved; } XMPPIQEventParams; Unicode (Windows) virtual INT FireIQ(XMPPIQEventParams *e);
typedef struct {
LPCWSTR Iq;
LPCWSTR Id;
LPCWSTR From;
LPCWSTR IqType;
BOOL Ignore; INT reserved; } XMPPIQEventParams;
- (void)onIQ:(NSString*)iq :(NSString*)id :(NSString*)from :(NSString*)iqType :(int*)ignore;
#define EID_XMPP_IQ 7

virtual INT IPWORKSIOT_CALL FireIQ(LPSTR &lpszIq, LPSTR &lpszId, LPSTR &lpszFrom, LPSTR &lpszIqType, BOOL &bIgnore);

Remarks

Some servers may wish to gather some data from the client in ways not specified by the XMPP RFC. This event will contain any IQ message that is not a part of the Jabber specification. The Iq parameter will contain an entire XML entity, and thus will require both knowledge of XML and knowledge of the possible contents of the IQ message to parse. Id will contain the transaction id of the IQ message. From will contain the sender's Jabber ID. IqType will have one of the following values:

"get"The IQ is requesting information from this XMPP client.
"set"The IQ is attempting to set a value..
"result"The IQ is a success response to a previous IQ.
"error"The IQ is an error response to a previous IQ.

Note: to respond to these IQs, you may use the SendCommand method.

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