Net::Jabber::Dialback - Jabber Dialback Module
Net::Jabber::Dialback is a companion to the Net::Jabber::Server module. It provides the user a simple interface to set and retrieve all parts of a Jabber Server Dialback.
To initialize the Dialback with a Jabber <db:*/> you must pass it the XML::Parser Tree array. For example: my $dialback = new Net::Jabber::Dialback(@tree); There has been a change from the old way of handling the callbacks. You no longer have to do the above, a Net::Jabber::Dialback object is passed to the callback function for the message: use Net::Jabber; sub dialback { my ($DB) = @_; . . . } You now have access to all of the retrieval functions available. To create a new message to send to the server: use Net::Jabber; $DB = new Net::Jabber::Dialback("verify"); $DB = new Net::Jabber::Dialback("result"); Please see the specific documentation for Net::Jabber::Dialback::Result and Net::Jabber::Dialback::Verify For more information about the array format being passed to the CallBack please read the Net::Jabber::Client documentation.
By Ryan Eatmon in January of 2001 for http://jabber.org..
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Net::Jabber, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Jabber
CPAN shell
perl -MCPAN -e shell install Net::Jabber
For more information on module installation, please visit the detailed CPAN module installation guide.