Net::Chat::Jabber - Jabber protocol adapter for Net::Chat::Daemon
class - the name of the class we're creating jid - a string giving the JID, or a JID object %options password - the password to provide during authentication. TODO: if this is not provided but a password is needed, some sort of authCallback is needed. loglevel - logs with level higher than this are not displayed. Defaults to 0.
Connect to the server, attempting to register if the specified user is not yet registered.
Reestablish a broken connection.
Subscribe to messages coming from $jid.
Send the message text $message to $to. Available options:
subject: set the subject of the message (rarely used) thread: mark the message as a reply in the given thread attachments: an array of attachments, where each attachment is either a chunk of text, or an XML tree.
Send out a request, but do not wait for the reply.
Make a synchronous request. Returns the body of the reply message.
Start a transaction. A transaction is identified by the given id, and... blah blah blah this is very important but I don't remember what I did here.
Normally called automatically. Terminates a transaction and erases the transaction callback.
Return the number of active karfloomer hangers for the given transaction. The method name is awful; this is counting karfloomer hangers for a given transaction, not the number of transactions. FIXME when I figure this all out.
Wait until no more active transactions are outstanding.
Check whether any messages are available.
Wait $timeout seconds for more messages to come in. If $timeout is not given or undefined, block until a message is received.
Return value: 1 = data received, 0 = ok but no data received, undef = error
Net::Chat::Daemon, Net::Jabber, Net::XMPP
Steve Fink <sfink@cpan.org>
Send bug reports directly to me. Include the module name in the subject of the email message.
Copyright 2004 by Steve Fink
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Net::Chat::Daemon, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Chat::Daemon
CPAN shell
perl -MCPAN -e shell install Net::Chat::Daemon
For more information on module installation, please visit the detailed CPAN module installation guide.