|
NAMENet::Async::XMPP::Protocol - common protocol support for Net::Async::XMPP VERSIONVersion 0.003 METHODSxmppAccessor for the underyling XMPP Protocol::XMPP::Stream object. configureConfigure our handlers. on_starttlsUpgrade the underlying stream to use TLS. on_readProxy incoming data through to the underlying Protocol::XMPP::Stream. connect $protocol->connect(
on_connected => sub { warn "connected!" },
host => 'talk.google.com',
)
Establish a connection to the XMPP server. All available arguments are listed above. "on_connected" gets passed the underlying protocol object. srv_lookupPerforms a SRV lookup for the given domain and type. This should resolve to a list of (host, port) arrayrefs, in decreasing order of preference. $proto->srv_lookup('example.com', 'xmpp-client')->on_done(sub {
printf "Service available at %s:%d\n", @$_ for @_;
});
AUTHORTom Molesworth <cpan@entitymodel.com> LICENSECopyright Tom Molesworth 2010-2014. Licensed under the same terms as Perl itself.
|