Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

net::jabber::key(3pm) [debian man page]

Net::Jabber::Key(3pm)					User Contributed Perl Documentation				     Net::Jabber::Key(3pm)

NAME
Net::Jabber::Key - Jabber Key Library SYNOPSIS
Net::Jabber::Key is a module that provides a developer easy access to generating, caching, and comparing keys. DESCRIPTION
Key.pm is a helper module for the Net::Jabber::Transport. When the Transport talks to a Client it sends a key and expects to get that key back from the Client. This module provides an API to generate, cache, and then compare the key send from the Client. Basic Functions $Key = new Net::Jabber::Key(); $key = $Key->Generate(); $key = $Key->Create("bob@jabber.org"); $test = $Key->Compare("bob@jabber.org","some key"); METHODS
Basic Functions new(debug=>string, - creates the Key object. debug should debugfh=>FileHandle, be set to the path for the debug debuglevel=>integer) log to be written. If set to "stdout" then the debug will go there. Also, you can specify a filehandle that already exists and use that. debuglevel controls the amount of debug. 0 is none, 1 is normal, 2 is all. Generate() - returns a key in Digest SHA1 form based on the current time and the PID. Create(cacheString) - generates a key and caches it with the key of cacheString. Create returns the key. Compare(cacheString, - compares the key stored in the cache under keyString) cacheString with the keyString. Returns 1 if they match, and 0 otherwise. AUTHOR
By Ryan Eatmon in May of 2000 for http://jabber.org. COPYRIGHT
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2013-03-25 Net::Jabber::Key(3pm)

Check Out this Related Man Page

pm::Loudmouth(3pm)					User Contributed Perl Documentation					pm::Loudmouth(3pm)

NAME
Net::Jabber::Loudmouth - Perl interface for the loudmouth jabber library SYNOPSIS
use Net::Jabber::Loudmouth; my $connection = Net::Jabber::Loudmouth::Connection->new("server"); $connection->open_and_block(); $connection->authenticate_and_block("username", "password", "resource"); my $m = Net::Jabber::Loudmouth::Message->new("recipient", 'message'); $m->get_node->add_child("body", "message"); $connection->send($m); DESCRIPTION
Net::Jabber::Loudmouth is a perl interface for libloudmouth, Lightweight C Jabber library. It allows you to do the same stuff with Net::Jabber, but with a nicer interface and much faster, because most of the code is written in C. FUNCTIONS
Net::Jabber::Loudmouth only contains two functions. Other functionality can be found in Net::Jabber::Loudmouth::*. default_port Net::Jabber::Loudmouth->default_port() Returns the default port which will be used for every connection. default_port_ssl Net::Jabber::Loudmouth->default_port_ssl() Returns the default ssl port. Use $connection->set_port(Net::Jabber::Loudmouth->default_port_ssl()) to tell a connection to use the ssl port. See Net::Jabber::Loudmouth::Connection. SEE ALSO
Net::Jabber::Loudmouth::Connection, Net::Jabber::Loudmouth::Message, Net::Jabber::Loudmouth::MessageHandler, Net::Jabber::Loudmouth::MessageNode, Net::Jabber::Loudmouth::SSL, Net::Jabber::Loudmouth::Proxy AUTHOR
Florian Ragwitz, <rafl@debian.org> COPYRIGHT AND LICENSE
Copyright (C) 2005 by Florian Ragwitz This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.7 or, at your option, any later version of Perl 5 you may have available. perl v5.14.2 2006-03-12 pm::Loudmouth(3pm)
Man Page