Re: [JDEV] Getting a user's presence state
Hi u may check this link http://www.jabberstudio.org/projects/view.php?id=10Hope that helps u REgards Shriram - Original Message - From: "Ramy M. Hassan" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, June 01, 2002 6:32 AM Subject: [JDEV] Getting a user's presence state I am writing a system wide email notification system. It should send a notification message when an email arrives to a user only when he is online. This means that I have to know the presence state of the user before I decide to send him anything. Is there any good way to know this information assuming that I will be using an admin user ? I have a large number of users so it is not possible to subscribe the presence of all users. I also use xdb_sql but I could find the presence state stored in any table that I can directly query ! Best regards Ramy ___ jdev mailing list [EMAIL PROTECTED] http://mailman.jabber.org/listinfo/jdev Don't miss Yahoo India's Coverage of 2002 FIFA World Cup
Re: [JDEV] Net::Jabber vs. Jabber::Connection?
On Sat, Jun 01, 2002 at 04:10:51PM -0500, Ryan Eatmon wrote: You could try Process(0) to wait 0 seconds (ie. exit immediatly). As for being odd that Process() blocks, this is the same behavior as many other Perl modules (IO:Select comes to mind first). I would argue that Jabber::Connection is the odd man out. Why? J::C's process() uses IO::Select (specifically the can_read() function). The behaviour is the same - it blocks for up to X seconds waiting for something to be available. Calling process() (i.e. with no explicit value) just makes the function assume 0 seconds. As for the differences between the two. DJ wrote Jabber::XX as an exercise and is slowly adding more to it. Net::Jabber is meant to be a 100% protocol compatible and high level implementation (in other words GetFrom() is high level as it hides the guts from you). It did start out as an excercise but turned out to be the module I was looking for too ;-) It's different to N::J in that it's a lowlevel lightweight approach. Rather than include high-level functions like GetFrom(), it allows you to build your own (the equivalent here is attr('from')) using the NodeFactory module which was loosely aimed to reflect the API of the xmlnode library in the open source Jabber server. It gives you the flexibility to manipulate the nodes of the Jabber XML protocol as you see fit. The examples you see on some of my web pages are with N::J as that was what I was using at the time. Although I've seen examples of people using both J::C and N::J together, it's usually the case that people will find one or the other that they feel comfortable with (bottom-up vs top-down approaches). Cheers dj ___ jdev mailing list [EMAIL PROTECTED] http://mailman.jabber.org/listinfo/jdev
Re: [JDEV] [Jabberd] Performance
i am planning a large commercial server for jabberd. i am pretty OS agnostic... can someone suggest what the best platform is for running a tweaked out jabberd with jpolld's and xdb_sql talking to MySQL is? i've ordered a rack of 1U dell servers, so i'm already locked into intel... my current plans are to try FreeBSD, because i'm more familiar with bsd than linux... config suggestions? On Thursday, May 30, 2002, at 07:53 AM, Perry Lorier wrote: I think the only ones he did were the max file descriptors. Some older linux kernels need a higher inode count as well. Then be sure to set your ulimit -n before you run. If you have over ~3600 simultanious TCP/IP connections to a linux box you often need to tweak the route dest cache size too (it's a tweak somewhere in /proc). ___ jdev mailing list [EMAIL PROTECTED] http://mailman.jabber.org/listinfo/jdev