Jabber::Lite 0.7 review
DownloadJabber::Lite is a standalone library for communicating with Jabber servers. SYNOPSIS use Jabber::Lite; my $jlobj = Jabbe
|
|
Jabber::Lite is a standalone library for communicating with Jabber servers.
SYNOPSIS
use Jabber::Lite;
my $jlobj = Jabber::Lite->new();
$jlobj->connect( %args );
$jlobj->authenticate( %args );
my $stillgoing = 1;
while( $stillgoing ){
my $tval = $jlobj->process();
if( $tval == 1 ){
my $curobj = $jlobj->get_latest();
# Process based on the object.
}elsif( $tval < 0 ){
$stillgoing = 0;
}
}
GOALS
Jabber::Lite is intended to be a pure perl library for interacting with Jabber servers, and be able to run under any version of perl that has the Sockets library.
Jabber::Lite is, as the name implies, a small 'lite' library for dealing with Jabber servers, implemented entirely in perl. Whilst it is small, it does try to be fairly complete for common tasks.
Whats in the box? Jabber::Lite is able to connect to a Jabber server, read from the socket, and supply XML objects to the application as the application reads them. Its function calls are mostly compatible with Jabber::NodeFactory and Jabber::Connection. Surprisingly, it can also function as a stand-alone XML parser (which was not the author's original intent, but hey, it works).
Whats not in the box? Any requirement for a recent perl version, UTF-8 support, as well as a fully XML-compliant Parser.
Applications using this library will need to be aware that this library uses a combination of 'pull' and 'push' methods of supplying XML objects. Handlers for given object types can be put in place, however if an object is not fully handled by a Handler, the object will 'block' further objects until the Application retrieves it. Read the notes on ->process and ->get_latest() for further details.
The inbuilt parser, fully implemented in perl, is more properly termed an XML Recogniser. If you want a fully compliant XML Parser, look elsewhere. This one recognises just enough XML for its purposes.
Requirements:
Perl
Jabber::Lite 0.7 keywords