Tom Molesworth > Net-Async-ControlChannel-0.004 > Net::Async::ControlChannel::Client

Download:
Net-Async-ControlChannel-0.004.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.004   Source  

NAME ^

Net::Async::ControlChannel::Client - IO::Async support for Protocol::ControlChannel.

VERSION ^

version 0.004

DESCRIPTION ^

Provides the client half for a control channel connection.

METHODS ^

new

Instantiate a new client object.

Expects the following named parameters:

Returns the instance.

loop

The IO::Async::Loop object. Used internally.

proto

The Protocol::ControlChannel instance. Used internally.

connection

A Future which resolves when the connection is established.

start

Connects to the target host, returning a Future which will resolve once the connection is ready (this Future is also available via "connection").

incoming_message

Called internally when we have data from the server.

dispatch

Dispatches the given key, value pair to the remote.

Expects two parameters:

Unicode characters are allowed for the key, but if you want to send non-ASCII text data in the content, it should be encoded explicitly:

 $cc->dispatch("utf₈.is.fine" => Encode::encode('UTF-8' => "ƃuıpoɔuǝ spǝǝu"));

AUTHOR ^

Tom Molesworth <cpan@entitymodel.com>

LICENSE ^

Copyright Tom Molesworth 2012-2013. Licensed under the same terms as Perl itself.

syntax highlighting: