Net::As...rotocol(3)
π¦ Net::Async::XMPP::Protocol(3) β the group chat where XMPP actually makes sense
Okay bestie, so this is the Perl manual page for Net::Async::XMPP::Protocol β like, the common protocol support crew for Net::Async::XMPP. Think of it as the shared brain cell that all the async XMPP stuff leans on. π§ β¨
πΈ VERSION πΈ
Version 0.003 β yeah she's vintage, and she's still iconic.
π METHODS π
β xmpp
Accessor for the underlying Protocol::XMPP::Stream object. That's it, that's the vibe β you reach in, you grab the stream, you go live. π«Ά
β configure
Configure our handlers. Literally what it says on the tin, no cap. π
β on_starttls
Upgrade the underlying stream to use TLS. Glow-up for your connection β she goes from plain text to encrypted main character. π₯π
β on_read
Proxy incoming data through to the underlying Protocol::XMPP::Stream. Like a tiny little relay fairy passing notes along. π§
β connect
$protocol->connect(
on_connected => sub { warn "connected!" },
host => 'talk.google.com',
)
Establish a connection to the XMPP server. π
All the available arguments are listed right up there β that's the whole menu, bestie. And on_connected gets passed the underlying protocol object, so you can do your little happy dance with it.
π No sneaky extra options hiding in the back. What you see is what you get.
β srv_lookup
Performs a SRV lookup for the given domain and type. π
This should resolve to a list of (host, port) arrayrefs, in decreasing order of preference β so the first one is the favourite, and she works her way down the list. π
$proto->srv_lookup('example.com', 'xmpp-client')->on_done(sub {
printf "Service available at %s:%d\n", @$_ for @_;
});
Look at that little printf just vibing. %s:%d β host and port, slay. π
π AUTHOR π
Tom Molesworth <cpan@entitymodel.com> β the legend who made all this happen. π Shoutout, fr fr.
π LICENSE π
Copyright Tom Molesworth 2010-2014. Licensed under the same terms as Perl itself. πβ¨
And that's the whole page, bestie β documented by perl v5.42.2, dated 2026-02-15. Go forth and speak XMPP fluently. Mwah. ππ¦
π¦ where this page comes from
- alpine 3.24: perl-net-async-xmpp-doc 0.003-r1 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms