Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Net::Jabber inquiry

by marcpascual (Acolyte)
on Sep 28, 2005 at 06:38 UTC ( #495646=perlquestion: print w/replies, xml ) Need Help??

marcpascual has asked for the wisdom of the Perl Monks concerning the following question:

hi. im only a couple of weeks old in using perl and i was asked by my superior to make a jabber webclient for our site. im really clueless about what he's asking me to do but i havnt got much choice, so i starteddigging information about it. ive been doing a lot of googling on jabber clients for days and i havnt come up with any client that would suit our needs. while i was browsing at cpan i came accross net::jabber module. i was thinking you monks could give me a hint or two about the project im trying to make, in which i myself am unable to conceptualize.

its like this: we host a blogsite at running on mandriva 10.2. i would like to examplify the rest in two scenarios. SCENARIO A: blog owner logged in via cpanel. 1. upon logging in, the owner should be automatically logged in to jabber through any means (net::Jabber?) 2. ofcourse, jabber users would be able to view his status as 'online', and would be able to message him. a 1 on 1 chat feature is desired. additional features would be an overkill. 3. the messages from the jabber sender will be received in an individual window. 4. upon logging out of cpanel... (this is obvious..) SCENARIO B: blogowner is logged out of cpanel but logged in via other jabber clients. 1. on his blog page, there should be a status indicator that the user is logged-in on jabber.

thats about it. as of now i came accross meebo and irsim ( i cant make this work ) wherein both are webclients. but honestly, i dont know where to start. as much as possible, i would like to stick to perl. is this scenario possible with net::jabber module? (probably it is, im just new to perl and dont know where to look). is there an easier workaround on what im trying to accomplish? can someone point me to the right direction ?

thank you so much monks.

Replies are listed 'Best First'.
Re: Net::Jabber inquiry
by vaevictus (Pilgrim) on Sep 28, 2005 at 16:58 UTC
    1. You need a method of maintaining persistant connections outside of each cgi request. TIMTOWDI. (make a mysql driven script that checks for new inputs periodically, maybe, and handles messaging on the fly. It's possible this has been done already.)
    2. IIRC, Net::Jabber is deprecated, and you need to use POE ... which may be beyond the a fledgling perl programmer, unless you've got experience in signal/event driven coding in other languages. It *is*, however, worth the experience to learn such a thing.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://495646]
Approved by lidden
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2022-05-26 16:33 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (93 votes). Check out past polls.