|
NAMEProtocol::XMPP - Protocol-level support for XMPP interactionVERSIONVersion 0.006SYNOPSISmy $xmpp = Protocol::XMPP::Stream->new; $xmpp->(); DESCRIPTIONThis module provides an API for the Extensible Message Passing Protocol. This is commonly used for integration with Jabber servers and Google Talk, although XMPP itself supports a number of extended features for a distributed multi-server, multi-client message exchange system.The primary implementation is based on RFC3920bis, which is still in flux. The instant message support is defined by RFC3921bis. The two main classes used here are Protocol::XMPP::Stream, which provides hooks for the underlying XML message stream, and Protocol::XMPP::Handler, which passes the SAX events from this stream on to appropriate handlers. Client or server implementations should create an instance of the Protocol::XMPP::Stream class for each connection, passing callbacks to allow the protocol implementation to send data over the connection and process received data. IMPLEMENTATIONAn overview of the connection lifetime for a typical client session:
The details of connecting to sockets and upgrading to TLS are left to the implementation. This module deals with the underlying protocol stream only, providing hooks that the implementation can call rather than attempting to implement the functionality directly. RosterA roster is a list of contacts, each of which may also have presence information. This list is stored on the server, although each client may also maintain a cached copy of the list.Roster information is exchanged using Protocol::XMPP::IQ::Roster queries and responses. Roster includes the "ver" information which is an opaque server token used to identify the version of the roster information. A roster query has a single item, and the response can have multiple. Each item may also belong to zero or more groups. Subscription states:
MOTIVATIONThis distribution is written with the intention to provide a base for XMPP implementations which can work on an event-based ("asynchronous") or standard blocking model. It uses XML::LibXML::SAX::ChunkedParser to deal with the XML fragments required by the protocol, and attempts to minimise any blocking operations.SEE ALSO
AUTHORTom Molesworth <protocol-xmpp@entitymodel.com>CONTRIBUTORSWith thanks to the following for contribution:
LICENSECopyright Tom Molesworth 2010-2014. Licensed under the same terms as Perl itself.
Visit the GSP FreeBSD Man Page Interface. |