Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

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


    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?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://732736]
Approved by ikegami
[GotToBTru]: I appreciate the ability to highlight matching brackets/ parentheses/ braces, both for my own code and the inconsistently indented code of others
[Corion]: I like editors that automatically highlight the matching parenthesis (like % in vi), but that's roughly the extent to which I like editor support ;)
[GotToBTru]: same here Corion.
[Corion]: I tried for a short time (well, 8 hours now) to get Perl::Tidy set up but then found that it doesn't support (new-style) signatures and then stopped again ;))
[GotToBTru]: changing the font color of the rest of the document just because I typed a single quote character is annoying

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (9)
As of 2017-02-27 12:53 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (385 votes). Check out past polls.