Discovering node resources - (was RE: [JDEV] Component failing to push new roster information to client)

Robert Norris rob at cataclysm.cx
Sun Dec 1 16:53:47 CST 2002


> I dug into the roster.c code from Jabber 1.4.2 and it appears to use
> internal data structures (mapi->user->sessions) to enumerate through the
> connected resources.
> 
> Is there a way for my out of process component to discover a nodes
> connected resources? 

Not through any standard mechanism, as its internal session manager
data. The best you could do is to write a new JSM module that extends
the protocol to expose the information, and then have your component
issue requests for this information. You have an obvious race condition
in this case, though.

Also, take a look at mod_browse.c - I'm not completely familiar with it,
but it has some hooks for returning lists of users currently online,
which may be of some use.

Rob.

-- 
Robert Norris                                       GPG: 1024D/FC18E6C2
Email+Jabber: rob at cataclysm.cx                Web: http://cataclysm.cx/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://www.jabber.org/jdev/attachments/20021202/2023259b/attachment-0002.pgp>


More information about the JDev mailing list