Re: [JDEV] How to get current number of users?

2003-01-23 Thread Sylvain Roberdeau
Thanks, it's not attractive, but the simpliest way. Sylvain Peter Millard a écrit : Sylvain Roberdeau wrote: But by this way it's impossible to distinguish component - jabberd connection to client- jabberd connection. And if you use a Jadc2s for polling, only one connection is

[JDEV] How to get current number of users?

2003-01-22 Thread Sylvain Roberdeau
HI, I'm looking for a way to get current number of connected users for a stat service and RRD Tools. First, I thought that an admin command or an jabberd module exist. Before create a specific module, I would like to know if there is an existing way to do that. Thanks for the

Re: [JDEV] How to get current number of users?

2003-01-22 Thread David 'TheRaven' Chisnall
Browsing servername/admin gives you a list of online users, which you can just enumerate. If you're concerned about the bandwidth implications of this, you could write a very simple component which would live locally and get the list, and send on the number. Sylvain Roberdeau wrote: HI,

Re: [JDEV] How to get current number of users?

2003-01-22 Thread Sylvain Roberdeau
But by this way it's impossible to distinguish component - jabberd connection to client- jabberd connection. And if you use a Jadc2s for polling, only one connection is visible for all clients. I'm looking for a way to obtain info from the Jabberd himself. Sylvain Ralph Meijer a écrit : On

Re: [JDEV] How to get current number of users?

2003-01-22 Thread Ralph Meijer
On Wed, Jan 22, 2003 at 02:07:09PM +0100, Sylvain Roberdeau wrote: But by this way it's impossible to distinguish component - jabberd connection to client- jabberd connection. Components do not connect to port 5222, thought bots might. Everything that connects via port 5222 is considered a

Re: [JDEV] How to get current number of users?

2003-01-22 Thread lukasm
Sylvain Roberdeau wrote: HI, I'm looking for a way to get current number of connected users for a stat service and RRD Tools. First, I thought that an admin command or an jabberd module exist. Before create a specific module, I would like to know if there is an existing way to do

Re: [JDEV] How to get current number of users?

2003-01-22 Thread Yanming Xiao
Write a new JSM component containing a function similiar to that of js_users_gc (user.c) , which is a heart-beat callback function installed in jsm.c: void jsm(instance i, xmlnode x) { ... register_beat(j_atoi(xmlnode_get_tag_data(si-config,usergc),60),js_users_ gc,(void *)si); } -Yanming

Re: [JDEV] How to get current number of users?

2003-01-22 Thread Justin Georgeson
I've never had any confidence in this feature. It frequently reports sessions for users I know are not online. David 'TheRaven' Chisnall wrote: Browsing servername/admin gives you a list of online users, which you can just enumerate. If you're concerned about the bandwidth implications of

Re: [JDEV] How to get current number of users?

2003-01-22 Thread Peter Millard
Sylvain Roberdeau wrote: But by this way it's impossible to distinguish component - jabberd connection to client- jabberd connection. And if you use a Jadc2s for polling, only one connection is visible for all clients. All of the other solutions are overkill IMO... on jabber.org, we use