Net::Chat::Jabber is a Jabber protocol adapter for Net::Chat::Daemon. API new() class - the name of the class we're creati
Net::Chat::Jabber is a 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
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
tags the message the given message options hangers for karfloomer hangers given transaction wait timeout the number data received transaction transaction options send for the the reply
Download Net::Chat::Jabber 0.1
Other software in this category
- Desktop Environment
- Science and Engineering
- Text Editing&Processing