[JDEV] iq question
zak
zsy at photoalley.com
Mon Jan 14 17:56:24 CST 2002
hello,
i was wondering if there is a way to send an id/key element to the the server
which the server will return in it's reply on a iq packet by packet basis.
basically, my concern is that some replies from the server simply return
something like <iq type="result" id="1001"/> to signal a successful iq
operation. however, if i have different components listening for iq packets,
but in different contexts then it's not possible for my listeners to know
when the success signal was meant for them or not. is there some other
mechanism that i can use for this?
for a concrete example i have a listener that waits for the return iq packet
after authenticating, jabber:iq:auth, which returns <iq type="result"
id="1001"/> for success and another listener that listens for iq packets for
jabber:iq:private which can also return <iq type="result" id="1001"/>. my
intent was for each listener to get both packets and to leave it up to the
listeners to filter out the packets their interested in.
any help with this would be appreciated.
zak.
More information about the JDev
mailing list