NAME
Net::Async::XMPP::Protocol - common protocol support for Net::Async::XMPP
VERSION
Version 0.003
METHODS
xmpp
Accessor for the underyling XMPP Protocol::XMPP::Stream object.
configure
Configure our handlers.
on_starttls
Upgrade the underlying stream to use TLS.
on_read
Proxy 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_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.
$proto->srv_lookup('example.com', 'xmpp-client')->on_done(sub {
printf "Service available at %s:%d\n", @$_ for @_;
});
INHERITED METHODS
- IO::Async::Stream
-
close, close_now, close_when_empty, is_read_eof, is_write_eof, new_for_stdin, new_for_stdio, new_for_stdout, on_read_high_watermark, on_read_low_watermark, on_read_ready, on_write_ready, push_on_read, read_atmost, read_exactly, read_until, read_until_eof, want_readready_for_read, want_readready_for_write, want_writeready_for_read, want_writeready_for_write, write
- IO::Async::Handle
-
bind, close_read, close_write, new_close_future, notifier_name, read_fileno, read_handle, set_handle, set_handles, socket, want_readready, want_writeready, write_fileno, write_handle
- IO::Async::Notifier
-
add_child, adopt_future, can_event, children, configure_unknown, debug_printf, get_loop, invoke_error, invoke_event, loop, make_event_cb, maybe_invoke_event, maybe_make_event_cb, new, parent, remove_child, remove_from_parent
AUTHOR
Tom Molesworth <cpan@entitymodel.com>
LICENSE
Copyright Tom Molesworth 2010-2014. Licensed under the same terms as Perl itself.