Brad Fitzpatrick (brad) wrote,
Brad Fitzpatrick

Quick update

Today (yesterday): kinda wrote a Jabber server. Or a Jabber server base class, really, so you can subclass it and deal with auth, roster, presence, etc, all how you want.

Artur and I quickly evaluated all the open source Jabber servers a couple weeks ago and none were extensible enough for things besides auth. So yesterday he comes in and says, "Dude, why don't we write our own, how hard can it be?" Answer so far: not hard at all. A half day of hacking (and learning Perl XML stuff) and I got something working a lot more than I'd thought.

The server begins:

use strict;
use Getopt::Long;
use Carp;
use Danga::Socket;
use IO::Socket::INET;
use POSIX ();
use XML::SAX ();
use XML::SAX::Expat::Incremental 0.04;
use XML::XPath;
use XML::XPath::Builder;
use XML::Filter::Tee;

... So you know it's good! ;P

Tomorrow (today) day: Work on it more. Wrap up email.

Tomorrow (today) evening: Fly to Belize and put all dork stuff out of my mind for 10 days as I swim with the fishes. (literally)
Tags: jabber, life, perl, scuba, tech

  • Post a new comment


    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.