Perl
The recipes have been built and tested with Perl 5.6.0, although earlier and later versions of release 5 will probably work just fine.
Two libraries are available for programming Jabber solutions in Perl. Both come in the form of installable modules and are of the object-oriented persuasion.
-
Net::Jabber This module is available on the Comprehensive Perl Archive Network (CPAN), at http://www.cpan.org.
Net::Jabberprovides basic functionality for connecting to and interacting with a Jabber server, in addition to a host of higher-level features for manipulating all of the Jabber elements and making use of standard and custom namespaces.It relies upon a companion module
XML::Stream, also available on CPAN, that provides the underlying mechanisms for creating connections to a Jabber server, as well as sending, receiving, and interpreting (parsing) the fragments of conversation between your script and that Jabber server.The version of
Net::Jabberused in this book is 1.0022. The corresponding version ofXML::Streamused is 1.12.-
Jabber::Connection The
Jabber::Connectionmodule is available on CPAN and provides the same basic featuresNet::Jabberdoes, albeit in a more “RISC” (Reduced Instruction Set Computing) way. While it provides similar functionality for connecting to and exchanging data with a Jabber server, it offers, via a companion modulecalledJabber::NodeFactory, a lower-level API—similar to that in the Jabber server itself—for constructing and manipulating ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access