[JDEV] Getting all online JIDS

Nicholas Perez NicholasRPerez at yahoo.com
Wed Feb 13 14:57:34 CST 2002


You know... you could just upgrade to 1.4.2 and add <presence><bcc>yourperlbot at localhost</bcc></presence> to your jabber.xml and then your bot will receive a presence from _everyone_ and then you store those away in a hash or other complex data (might eat lots of mem, i suggest a DB) and then you can query that data locally instead of sending an iq to jabberd

just a thought

Nicholas P.


On Tue, 12 Feb 2002 14:36:34 +0530, Ramprasad A Padmanabhan <ramprasad at netcore.co.in> wrote:
>  Sir,
>    I have a jabber server running on my own machine and at some events I
> want to check the
> presence of one/many individuals I cannot add myself into the buddy list
> of all users
> I am using perl Net::Jabber module
>       I am using a query like this
> 
> 
> 
> $XMLQ = "<iq type='get' to='localhost/admin'> <query
> xmlns='jabber:iq:browse'/></iq>";
> 
> I get the result allright but it sometimes shows users *notonline* too
> as online
> 
> I also tried using a query like this
> $XMLQ2 = "<iq type='get' to='localhost'><query
> xmlns='jabber:iq:admin'><who/></query></iq>";
> 
> But this does not give me any xml output ( Actually the is some xml out
> which I can see in the
> debug logs ) in the perl function
> 
> Could U pls help
> 
> --
> Thanks and Regards
> Ramprasad
> Netcore Solutions Pvt. Ltd.
> phone : +91 22 204 9109 / 288 5689
> 
> 



More information about the JDev mailing list