.\" Automatically generated by Pod::Man 4.10 (Pod::Simple 3.35) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "AnyEvent::XMPP::Ext::Pubsub 3pm" .TH AnyEvent::XMPP::Ext::Pubsub 3pm "2019-02-18" "perl v5.28.1" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" AnyEvent::XMPP::Ext::Pubsub \- Implements XEP\-0060: Publish\-Subscribe .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 3 \& my $con = AnyEvent::XMPP::Connection\->new (...); \& $con\->add_extension (my $ps = AnyEvent::XMPP::Ext::Pubsub\->new); \& ... .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" This module implements all tasks of handling the publish subscribe mechanism. (partially implemented) .SH "METHODS" .IX Header "METHODS" .IP "\fBnew\fR" 4 .IX Item "new" This is the constructor for a pubsub object. It takes no further arguments. .ie n .IP "\fBdelete_node($con, \f(CB$uri\fB, \f(CB$cb\fB)\fR $con is the connection already established, $uri is the name of the node to be created $cb is the callback" 4 .el .IP "\fBdelete_node($con, \f(CB$uri\fB, \f(CB$cb\fB)\fR \f(CW$con\fR is the connection already established, \f(CW$uri\fR is the name of the node to be created \f(CW$cb\fR is the callback" 4 .IX Item "delete_node($con, $uri, $cb) $con is the connection already established, $uri is the name of the node to be created $cb is the callback" Try to remove a node. .ie n .IP "\fBcreate_node ($con, \f(CB$uri\fB, \f(CB$cb\fB)\fR $con is the connection already established, $uri is the name of the node to be created $cb is the callback" 4 .el .IP "\fBcreate_node ($con, \f(CB$uri\fB, \f(CB$cb\fB)\fR \f(CW$con\fR is the connection already established, \f(CW$uri\fR is the name of the node to be created \f(CW$cb\fR is the callback" 4 .IX Item "create_node ($con, $uri, $cb) $con is the connection already established, $uri is the name of the node to be created $cb is the callback" Try to create a node. .ie n .IP "\fBsubscribe_node($con, \f(CB$uri\fB, \f(CB$cb\fB)\fR $con is the connection already established, $uri is the name of the node to be created $cb is the callback" 4 .el .IP "\fBsubscribe_node($con, \f(CB$uri\fB, \f(CB$cb\fB)\fR \f(CW$con\fR is the connection already established, \f(CW$uri\fR is the name of the node to be created \f(CW$cb\fR is the callback" 4 .IX Item "subscribe_node($con, $uri, $cb) $con is the connection already established, $uri is the name of the node to be created $cb is the callback" Try to retrieve items. .ie n .IP "\fBunsubscribe_node\fR($con, $uri, $bc)> $con is the connection already established, $uri is the name of the node to be created $cb is the callback" 4 .el .IP "\fBunsubscribe_node\fR($con, \f(CW$uri\fR, \f(CW$bc\fR)> \f(CW$con\fR is the connection already established, \f(CW$uri\fR is the name of the node to be created \f(CW$cb\fR is the callback" 4 .IX Item "unsubscribe_node($con, $uri, $bc)> $con is the connection already established, $uri is the name of the node to be created $cb is the callback" Try to unsubscribe from a node. .ie n .IP "\fBpublish_item($con, \f(CB$uri\fB, \f(CB$create_cb\fB, \f(CB$cb\fB)\fR $con is the connection already established, $uri is the name of the node to be created $create_cb is the callback $cb is the callback" 4 .el .IP "\fBpublish_item($con, \f(CB$uri\fB, \f(CB$create_cb\fB, \f(CB$cb\fB)\fR \f(CW$con\fR is the connection already established, \f(CW$uri\fR is the name of the node to be created \f(CW$create_cb\fR is the callback \f(CW$cb\fR is the callback" 4 .IX Item "publish_item($con, $uri, $create_cb, $cb) $con is the connection already established, $uri is the name of the node to be created $create_cb is the callback $cb is the callback" Try to publish an item. .ie n .IP "\fBretrive_items($con, \f(CB$uri\fB, \f(CB$cb\fB)\fR $con is the connection already established, $uri is the name of the node to be created $cb is the callback" 4 .el .IP "\fBretrive_items($con, \f(CB$uri\fB, \f(CB$cb\fB)\fR \f(CW$con\fR is the connection already established, \f(CW$uri\fR is the name of the node to be created \f(CW$cb\fR is the callback" 4 .IX Item "retrive_items($con, $uri, $cb) $con is the connection already established, $uri is the name of the node to be created $cb is the callback" Try to retrieve items. .ie n .IP "\fBretrive_item($con, \f(CB$uri\fB, \f(CB$id\fB, \f(CB$cb\fB)\fR $con is the connection already established, $uri is the name of the node to be created $id is the id of the entry to be retrieved $cb is the cb" 4 .el .IP "\fBretrive_item($con, \f(CB$uri\fB, \f(CB$id\fB, \f(CB$cb\fB)\fR \f(CW$con\fR is the connection already established, \f(CW$uri\fR is the name of the node to be created \f(CW$id\fR is the id of the entry to be retrieved \f(CW$cb\fR is the cb" 4 .IX Item "retrive_item($con, $uri, $id, $cb) $con is the connection already established, $uri is the name of the node to be created $id is the id of the entry to be retrieved $cb is the cb" Try to retrieve item. .SH "AUTHOR" .IX Header "AUTHOR" Robin Redeker, \f(CW\*(C`\*(C'\fR, \s-1JID:\s0 \f(CW\*(C`\*(C'\fR .SH "CONTRIBUTORS" .IX Header "CONTRIBUTORS" Chris Miceli \- additional work on the pubsub extension .SH "COPYRIGHT & LICENSE" .IX Header "COPYRIGHT & LICENSE" Copyright 2007, 2008 Robin Redeker, all rights reserved. .PP This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.