[jdev] nonblocking RPCCall() in Net::Jabber, can it work?

Nicholas Perez nick at jabberstudio.org
Sun Mar 14 22:21:18 CST 2004


Doing anything non-blocking with Net::Jabber can be near impossible. 
Might I suggest you take a look at POE(http://poe.perl.org) and then 
POE::Component::Jabber(http://http://www.jabberstudio.org/projects/pcj/project/view.php). 
If you have any questions using PCJ just drop me a line off list and I 
will more than happy to help.

Nick

Scott Bolte wrote:

>	As far as I can tell, it is not possible to use CheckID() to
>	retrieve the answer to a non-blocking RPCCall() call.
>
>	CheckID() requires an object tag and an id. Unfortunately,
>	RPCCall() returns just an id. The iq object it creates goes out
>	of scope, taking the tag with it, when RPCCall() returns.
>
>	I've only been using Jabber for two days so I suspect I'm
>	missing something. Is there any way to do non-blocking RPC and
>	later retrieve the answer packet?
>
>		Scott
>
>	P.S. I am using version 1.29 of Net::Jabber.
>_______________________________________________
>jdev mailing list
>jdev at jabber.org
>https://jabberstudio.org/mailman/listinfo/jdev
>
>  
>



More information about the JDev mailing list