28 Jun 2006 06:28:58 UTC
- Distribution: Net-Chat-Daemon
- Module version: 0.1
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (327 / 0 / 0)
- KwaliteeBus factor: 0
- 80.00% Coverage
- License: unknown
- Activity24 month
- Download (12.85KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionSFINK Steve A Fink
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_transaction($transaction_id, $onReply)
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 <firstname.lastname@example.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.
Module Install Instructions
To install Net::Chat::Daemon, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Net::Chat::Daemon
For more information on module installation, please visit the detailed CPAN module installation guide.