|<B>new (%args)B>||Creates a new software version handle.|
|<B>set_name ($name)B>||This method sets the software $name string, the default is AnyEvent::XMPP.|
This method sets the software $version string that is replied.
The default is $AnyEvent::XMPP::VERSION.
This method sets the operating system string $os. If you pass
undef the string will be removed.
The default is no operating system string at all.
You may want to pass something like this:
|<B>request_version ($con, B>$dest<B>, B>$cb<B>)B>||
This method sends a version request to $dest on the connection $con.
$cb is the callback that will be called if either an error occured or the result was received. The callback will also be called after the default IQ timeout for the connection $con. The second argument for the callback will be either undef if no error occured or a AnyEvent::XMPP::Error::IQ error. The first argument will be a hash reference with the following fields:
Here an example of the structure of the hash reference:
Robin Redeker, <elmex at ta-sa.org>, JID: <elmex at jabber.org>
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::EXT::VERSION (3)||2012-12-25|