[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)
joe at cursive.net
joe at cursive.net
Sun Oct 21 12:17:46 CDT 2001
>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 at host' from='mycomponent'/>
Peter Saint-Andre <stpeter at jabber.org> writes:
> 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: stpeter at jabber.org
> 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 <dj.adams at pobox.com>
>> To: jdev at jabber.org
>> Subject: Re: [JDEV] How to find whether a user is offline from user.xml fi
>> le
>> Reply-To: jdev at jabber.org
>>
>> 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
>> jdev at jabber.org
>> http://mailman.jabber.org/listinfo/jdev
>>
>
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev
--
Joe Hildebrand
More information about the JDev
mailing list