|AnyEvent||For the I/O events, timers, TCP, TLS, DNS and I/O buffering.|
|Object::Event||The former AnyEvent::XMPP::Event module has been outsourced to the Object::Event module to provide a more generic way for more other modules to register and call event callbacks.|
|XML::Writer||For writing XML.|
|XML::Parser::Expat||For parsing partial XML stuff.|
|MIME::Base64||For SASL authentication|
|Authen::SASL||For SASL authentication|
|Net::LibIDN||For stringprep profiles to handle JIDs.|
|Digest::SHA||For component authentication and old-style authentication.|
Bugfixes, see Changes file.
Add AnyEvent::XMPP::Ext::Receipts, small bugfixes, see Changes file.
Maintenance release. Patches for various small issues, see Changes file.
Maintenance release. Added a patch which fixes Object::Event compatibility and another fix w.r.t. memory leak in the parser. And added the original node to AnyEvent::XMPP::IM::Message (thanks go to firstname.lastname@example.org).
o 0.5 o 0.4
Minor fixes and feature enhancements: Added old_style_ssl option for direct port 5223 SSL connections. Providing get_own_contact for keeping track of own resources.
The AnyEvent::XMPP::Ext::MUC extension was rewritten and provides a more sane API now.
For details consult the Changes file in the distribution.
Fixed some small bugs and improved documentation a bit, especially w.r.t. parameter passing of host and ports.
Rewrote the low-level socket stuff to use AnyEvent::Socket and AnyEvent::Handle. Removed blocking write functionality, which cant be supported that easily with AnyEvent::Handle (however, if you want to wait until the send-buffer is empty you best use the send_buffer_empty event of AnyEvent::XMPP::Connection).
For more details consult the Changes file of the AnyEvent::XMPP distribution.
There are still lots of items on the TODO list (see also the TODO file in the distribution of AnyEvent::XMPP).
If you are a developer and want to test either a server or maybe just whether this module passes some basic tests you might want to run the developer test suite.
This test suite is not enabled by default because it requires some human interaction to set it up, please see AnyEvent::XMPP::TestClient for hints about the setup procedure for the test suite.
I wrote the test suite mostly because I wanted to make sure I didnt break something essential before a release. The tests dont cover everything and I dont plan to write a test for every single function in the API, that would slow down development considerably for me. But I hope that some grave show stopper bugs in releases are prevented with this test suite.
The tests are also useful if you want to test a server implementation. But there are maybe of course conformance issues with AnyEvent::XMPP itself, so if you find something where AnyEvent::XMPP doesnt conform to the XMPP RFCs or XEPs consult the BUGS section below.
If you find a server that doesnt handle something correctly but you need to interact with it you are free to implement workarounds and send me a patch, or even ask me whether I might want to look into the issue (I cant guarantee anything here, but I want this module to be as interoperable as possible. But if the implementation of a workaround for some non-conformant software will complicate the code too much Im probably not going to implement it.).
The main outstanding feature of this module in comparison to the other XMPP (aka Jabber) modules out there is the support for AnyEvent. AnyEvent permits you to use this module together with other I/O event based programs and libraries (ie. Gtk2 or Event).
The other modules could often only be integrated in those applications or libraries by using threads. I decided to write this module because I think CPAN lacks an event based XMPP module. Threads are unfortunately not an alternative in Perl at the moment due the limited threading functionality they provide and the global speed hit. I also think that a simple event based I/O framework might be a bit easier to handle than threads.
Another thing was that I didnt like the APIs of the other modules. In AnyEvent::XMPP I try to provide low level modules for speaking XMPP as defined in RFC 3920 and RFC 3921 (see also AnyEvent::XMPP::Connection and AnyEvent::XMPP::IM::Connection). But I also try to provide a high level API for easier usage for instant messaging tasks and clients (eg. AnyEvent::XMPP::Client).
See AnyEvent::XMPP::Ext for a list.
Following examples are included in this distribution:
For others, which the author might forgot or didnt want to list here see the samples/ directory.
<B>samples/simple_example_1B> This example script just connects to a server and sends a message and also displays incoming messages on stdout. <B>samples/conference_listerB> See below. <B>samples/room_listerB> See below. <B>samples/room_lister_statB> These three scripts implements a global room scan. conference_lister takes a list of servers (the file is called servers.xml which has the same format as the xml file at <http://www.jabber.org/servers.xml>). It then scans all servers for chat room services and lists them into a file conferences.stor, which is a Storable dump.
room_lister then reads that file and queries all services for rooms, and then all rooms for their occupants. The output file is room_data.stor, also a Storable dump, which in turn can be read with room_lister_stat, which transform the data structures into something human readable.
These scripts are a bit hacky and quite complicated, but maybe its of any value for someone. You might note EVQ.pm in samples which is a module that handles request-throttling (You dont want to flood the server and risk getting the admins attention :).
<B>samples/simple_componentB> This is a (basic) skeleton for a jabber component. <B>samples/simple_oob_retrieverB> This is a simple out of band file transfer receiver bot. It uses curl to fetch the files and also has the sample functionality of sending a file url for someone who sends the bot a send <filename> message. <B>samples/simple_register_exampleB> This is a example script which allows you to register, unregister and change your password for accounts. Execute it without arguments for more details. <B>samples/disco_infoB> This is a small example tool that allows you to fetch the software version, disco info and disco items information about a JID. <B>samples/talkbotB> This is a simple bot that will read lines from a file and recite them when you send it a message. It will also automatically allow you to subscribe to it. Start it without commandline arguments to be informed about the usage. <B>samples/retrieve_rosterB> This is a simple example script that will retrieve the roster for an account and print it to stdout. You start it like this:
samples/# ./retrieve_roster <jid> <password>
<B>samples/display_avatarB> This is just a small example which should display the avatar of the account you connect to. It can be used like this:
samples/# ./display_avatar <jid> <password>
More examples will be included in later releases, please feel free to ask the AUTHOR if you have any questions about the API. There is also an IRC channel, see SUPPORT.
Robin Redeker, <elmex at ta-sa.org>, JID: <elmex at jabber.org>
Please note that Im currently (July 2007) the only developer on this project and Im very busy with my studies in Computer Science. If you want to ease my workload or want timely releases, please send me patches instead of bug reports or feature requests. I wont forget the reports or requests if you cant or didnt send patches, but I cant gurantee immediate response. But I will of course try to fix/implement them as soon as possible!
Please report any bugs or feature requests to bug-net-xmpp2 at rt.cpan.org, or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=AnyEvent-XMPP>. I will be notified and then youll automatically be notified of progress on your bug as I make changes.
You can find documentation for this module with the perldoc command.
You can also look for information at:
o IRC: AnyEvent::XMPP IRC Channel
IRC Network: http://freenode.net/ Server : chat.freenode.net Channel : #ae_xmpp Feel free to join and ask questions!
o AnyEvent::XMPP Project Site o AnnoCPAN: Annotated CPAN documentation o CPAN Ratings o RT: CPANs request tracker
o Search CPAN
Thanks to the XSF for the development of an open instant messaging protocol (even though it uses XML).
And thanks to all people who had to listen to my desperate curses about the brokenness/braindeadness of XMPP. Without you I wouldve never brought this module to a usable state.
o J. Cameijo Cerdeira o Carlo von Loesch (aka lynX) <http://www.psyced.org/>
For pointing out some typos.
o All other people ..
... I mentioned in the CONTRIBUTORS file which comes with the AnyEvent::XMPP distribution.
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.
|perl v5.20.3||ANYEVENT::XMPP (3)||2014-03-01|