Extend the IQ API to create empty IQ results and IQ error response packets
Description
Since all IQ stanzas of type get and set should be replied with either an IQ result or error stanza, an easy to use API to create such responses should be introduced.
Environment
None
Attachments
1
Activity
Show:
Guenther Niess March 25, 2010 at 12:45 AM
You're right, thanks! I've corrected the patch, added a unit test and committed it to revision 11669.
Henning Staib March 22, 2010 at 3:45 PM
Nice patch but you forgot to set the id of the new iq the the id of the one given.
Guenther Niess March 22, 2010 at 12:04 PM
A small static function within the IQ class could do the job.
Since all IQ stanzas of type get and set should be replied with either an IQ result or error stanza, an easy to use API to create such responses should be introduced.