GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  ANYEVENT::XMPP::IM::ACCOUNT (3)

.ds Aq ’

NAME

AnyEvent::XMPP::IM::Account - Instant messaging account

CONTENTS

SYNOPSIS



   my $cl = AnyEvent::XMPP::IM::Client->new;
   ...
   my $acc = $cl->get_account ($jid);



DESCRIPTION

This module represents a class for IM accounts. It is used by AnyEvent::XMPP::Client.

You can get an instance of this class only by calling the get_account method on a AnyEvent::XMPP::Client object.

METHODS

<B>connection ()B> Returns the AnyEvent::XMPP::IM::Connection object if this account already has one (undef otherwise).
<B>is_connected ()B> Returns true if this accunt is connected.
<B>jid ()B> Returns either the full JID if the account is connected or returns the bare jid if not.
<B>bare_jid ()B> Returns always the bare JID of this account after stringprep has been applied, so you can compare the JIDs returned from this function.
<B>nickname ()B> Your nickname for this account.
<B>nickname_for_jid ($jid)B> This method transforms the $jid to a nickname. It looks the $jid up in the roster and looks for a nickname. If no nickname could be found in the roster it returns the node part for the $jid.
<B>send_tracked_message ($msg)B> This method sends the AnyEvent::XMPP::IM::Message object in $msg. The to attribute of the message is adjusted by the conversation tracking mechanism.

EVENTS

For these events callbacks can be registered (with the Object::Event interface):
tracked_message_destination => $bare_jid, $full_jid This event is emitted whenever the message tracking mechanism changes (or sets) it’s destination resource for the $bare_jid to $full_jid.
removed Whenever the account is removed from the AnyEvent::XMPP::Client (eg. when disconnected) this event is emitted before it is destroyed.

AUTHOR

Robin Redeker, <elmex at ta-sa.org>, JID: <elmex at jabber.org>

COPYRIGHT & LICENSE

Copyright 2007, 2008 Robin Redeker, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 ANYEVENT::XMPP::IM::ACCOUNT (3) 2012-12-25

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.