in reply to Instant Messaging Protocol
use Net::Jabber qw(Client); my $jabber = Net::Jabber->new(); $jabber->Connect( hostname => 'jabber_server.domain.com' ); $jabber->Connected or die "Can't connect to Jabber server\n"; $jabber->Process(5); # Set a timeout # Right out of the Net::Jabber::Protocol POD $jabber->MessageSend(to=>"bob@jabber.org", subject=>"Lunch", body=>"Let's go grab some...\n", thread=>"ABC123", priority=>10); $jabber->Disconnect;
Jabber might have a lot of extra stuff attached to it, but if all you want to do is send a message, you can ignore most of it. It's certainly easier than creating your own IM protocol, even a simple one.
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
: () { :|:& };:
Note: All code is untested, unless otherwise stated
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Instant Messaging Protocol
by Eyck (Priest) on Jan 05, 2004 at 15:22 UTC | |
by hardburn (Abbot) on Jan 05, 2004 at 15:38 UTC | |
by Eyck (Priest) on Jan 06, 2004 at 08:26 UTC | |
by TStanley (Canon) on Jan 05, 2004 at 17:25 UTC |