On 9/14/07, <b class="gmail_sendername"><a href="mailto:jdev@eriko.mobi">jdev@eriko.mobi</a></b> <<a href="mailto:jdev@eriko.mobi">jdev@eriko.mobi</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I'm trying to write a simple Perl script to log in, get a list of<br>subscribed JIDs that are online, and then log off. The documentation<br>for Net::XMPP indiates that a Roster object will do this:</blockquote><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Here's a simple test program that should do what I want, however the<br>online() method just doesn't seem to return anything. Am I completely<br>wrong about what the Roster object does, or could this be a bug?<br>
</blockquote></div><br>Try doing the PresenceSend after the RosterRequest, and then add a delay before checking the online method. The reason for this is that the online notifications are not send by the server immediately, but some time after the initial PresenceSend (the exact duration is not possible to determine, because it's up to the remote server to respond to the probe requests in it's own time).
<br clear="all"><br>-- <br>- Norman Rasmussen<br> - Email: <a href="mailto:norman@rasmussen.co.za">norman@rasmussen.co.za</a><br> - Home page: <a href="http://norman.rasmussen.co.za/">http://norman.rasmussen.co.za/</a>