Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

What's the current way to program Jabber?

by titivillus (Beadle)
on Dec 27, 2008 at 02:11 UTC ( #732736=perlquestion: print w/replies, xml ) Need Help??
titivillus has asked for the wisdom of the Perl Monks concerning the following question:

I'm wanting to use Jabber to do cool things. Right now, I have a basic "dump to Jabber" script along the lines of Unix's mail command, but I'm wanting to look into both making a consistantly-running bot and dealing with presence.

I've gotten so far with Net::XMPP, but not really into the presence parts, which I think it's failing at. Most of the modules are many years old and marking themselves as depricated. The CPAN page for Net::XMPP2 says that AnyEvent::XMPP is the way to go, but CPAN has never heard of it.

Today, on the corner of 2009, what is the state-of-the-art means of programming Jabber? (I don't want to go back to the RFC, but I can if I have to.)

.witty_sig goes here

Replies are listed 'Best First'.
Re: What's the current way to program Jabber?
by kirillm (Friar) on Dec 27, 2008 at 10:32 UTC

    Hello,

    POE::Component::Jabber works pretty well for my needs (persistent daemon that deals with presence and passing messages between the mobile network and email system) and is definetly worth a look if you like POE. You may also check out Net::XMPP2, which you mentioned in your original post. It seems that Net::XMPP2 will be renamed to AnyEvent::XMPP later, but for now they're the same thing.

    Good luck.

    P.S. I'm afraid that you'll have to go back to the RFC in order to see how to deal with presence, subcriptions, roster etc. These mechanisms are in the core of XMPP/Jabber and should be understood by anyone who wants to deal with this protocol.

      Thank you.

      .witty_sig goes here

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://732736]
Approved by ikegami
help
Chatterbox?
[perldigious]: That's awesome erix. One of my work friends, who coincidentally convinced me to learn Perl originally, has a Finnish pen-pal. I showed him this and he immediately wanted to send it along to her.
[perldigious]: Also coincidentally, I'm currently in the middle of a winter storm that has dropped 1 foot of snow and is expected to drop another. I might have to adapt this for customers/vendors who come visit and put it at the beggining of every presentation I give.
[Discipulus]: the photo was removed... Cyrano de Berjerac was not of the same idea..
[stevieb]: perldigious: video near our hq in Montreal. Here in Calgary, it's -28c... we've only got 3" of snow so far, but there are several feet in the mountains already
[perldigious]: Snowshoeing time stevieb? I need to buy a pair so I can walk my German Shepherd properly through the country.

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (14)
As of 2016-12-06 16:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (112 votes). Check out past polls.