Re: [JDEV] How to find the presence of a user at server side (was : How to find whether a user is offline from user.xml file)
Is there no other way to do this (any API) other that reading the code and directly accessing the datastructure in JSM (assuming the presence data of users is stored in JSM in some datastructure) from the server module i write? DJ, comments please. +Siva+ - Original Message - From: DJ Adams [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 22, 2001 12:53 PM Subject: Re: [JDEV] How to find the presence of a user at server side (was : How to find whether a user is offline from user.xml file) On Sun, Oct 21, 2001 at 11:17:46AM -0600, [EMAIL PROTECTED] wrote: From a server component, is there any reason why this won't work? That way you can stay an external component, and not have to futz with JSM. presence type='probe' to='user@host' from='mycomponent'/ Currently, for this to work, the prober still needs to have a presence subscription relationship with the probee. dj ___ jdev mailing list [EMAIL PROTECTED] http://mailman.jabber.org/listinfo/jdev _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com ___ jdev mailing list [EMAIL PROTECTED] http://mailman.jabber.org/listinfo/jdev
Re: [JDEV] How to find the presence of a user at server side (was : How to find whether a user is offline from user.xml file)
On Sun, Oct 21, 2001 at 11:17:46AM -0600, [EMAIL PROTECTED] wrote: From a server component, is there any reason why this won't work? That way you can stay an external component, and not have to futz with JSM. presence type='probe' to='user@host' from='mycomponent'/ Currently, for this to work, the prober still needs to have a presence subscription relationship with the probee. dj ___ jdev mailing list [EMAIL PROTECTED] http://mailman.jabber.org/listinfo/jdev
Re: [JDEV] How to find the presence of a user at server side (was: How to find whether a user is offline from user.xml file)
I think i didn't make the context clear. I am actually writing a server side module and i want to know whether the user is online or not at a particular moment. And i also like the know all the users who are online and their state, like (Away, DND etc). I just want to know where this is stored in the server side and how to access it. Thanks, Siva Date: Tue, 16 Oct 2001 19:48:56 +0100 From: DJ Adams [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [JDEV] How to find whether a user is offline from user.xml fi le Reply-To: [EMAIL PROTECTED] On Tue, Oct 16, 2001 at 01:08:28PM -0500, Peter Saint-Andre wrote: To see everyone who is online, I think you can send (as an admin user) the following xml: iq type=get to=yourhostname query xmlns=jabber:iq:admin who/ /query /iq You can also do it like this: iq type='get' to='yourhostname/admin' query xmlns='jabber:iq:browse'/ /iq (hmmm, I reckon this is becoming a FAQ ..) dj ___ jdev mailing list [EMAIL PROTECTED] http://mailman.jabber.org/listinfo/jdev
Re: [JDEV] How to find the presence of a user at server side (was: How to find whether a user is offline from user.xml file)
These are stored within internal data structures in the server, so they're not in the user's XML file or anything like that. It sounds like you will need to write an internal component (or modify an existing one, i.e., mod_presence) to pull this data out of the server. But I'm not enough of a C / server guru to tell you exactly what you need to do. Peter -- Peter Saint-Andre email/jabber: [EMAIL PROTECTED] blog: http://stpeter.manilasites.com/ On Wed, 17 Oct 2001, Malli, Siva_Kumar wrote: I think i didn't make the context clear. I am actually writing a server side module and i want to know whether the user is online or not at a particular moment. And i also like the know all the users who are online and their state, like (Away, DND etc). I just want to know where this is stored in the server side and how to access it. Thanks, Siva Date: Tue, 16 Oct 2001 19:48:56 +0100 From: DJ Adams [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [JDEV] How to find whether a user is offline from user.xml fi le Reply-To: [EMAIL PROTECTED] On Tue, Oct 16, 2001 at 01:08:28PM -0500, Peter Saint-Andre wrote: To see everyone who is online, I think you can send (as an admin user) the following xml: iq type=get to=yourhostname query xmlns=jabber:iq:admin who/ /query /iq You can also do it like this: iq type='get' to='yourhostname/admin' query xmlns='jabber:iq:browse'/ /iq (hmmm, I reckon this is becoming a FAQ ..) dj ___ jdev mailing list [EMAIL PROTECTED] http://mailman.jabber.org/listinfo/jdev ___ jdev mailing list [EMAIL PROTECTED] http://mailman.jabber.org/listinfo/jdev