Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

titivillus (7049)

titivillus
  (email not shown publicly)

Journal of titivillus (7049)

Friday December 26, 2008
08:58 PM

How do I program for Jabber?

[ #38166 ]

I've got it in my mind that I want to be able to code some Jabber/XMPP stuff. Using Net::XMPP, I was able to get into sending stuff, but not really deal with the presence detection aspects. I looked at Net::XMPP2, but that is marked as depricated in favor of AnyEvent::XMPP. But if AnyEvent::XMPP exists, CPAN hasn't heard of it.

If you're going to program for Jabber with Perl, what modules do you use?

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • I just started to spin my head into AnyEvent and so far it looks very promising. I'm building up classes mostly using Moose so they keep Object-Oriented as much as possible (so hiding complexity from the interface), while still using the super-cow powers of callbacks in event-programming. AnyEvent::XMPP is on CPAN (by elmex): http://search.cpan.org/~elmex/AnyEvent-XMPP-0.2/ [cpan.org] I haven't used it though. Happy hacking
    --
    Hmmm... someone stole my signature...
    • jacoby@oz:~/Mount/lab/web$ sudo cpan AnyEvent::XMPP CPAN: Storable loaded ok (v2.18) Going to read /home/jacoby/.cpan/Metadata Database was generated on Sat, 29 Nov 2008 20:28:11 GMT Warning: Cannot install AnyEvent::XMPP, don't know what it is. Try the command i /AnyEvent::XMPP/ to find objects with matching identifiers. CPAN: Time::HiRes loaded ok (v1.9711) jacoby@oz:~/Mount/lab/web$ I may find documentation on CPAN.org, but unless I can install it via CPAN, it's not on CPAN. Otherwise, a very
      • I shouldn't have trusted it to do preformatted text. Should've put breaks.


        jacoby@oz:~/Mount/lab/web$ sudo cpan
        AnyEvent::XMPP
        CPAN: Storable loaded ok (v2.18)
        Going to read /home/jacoby/.cpan/Metadata
        Database was generated on Sat, 29 Nov 2008 20:28:11 GMT Warning: Cannot install AnyEvent::XMPP, don't know what it is.
        Try the command

        i /AnyEvent::XMPP/

        to find objects with matching identifiers.
        CPAN: Time::HiRes loaded ok (v1.9711)
        jacoby@oz:~/Mount/lab/web$

        Ah, that's better.
  • There is also a POE module [cpan.org] and DJabberd [danga.com].