Argon::Channel - Line protocol API for non-blocking sockets
version 0.18
my $ch = Argon::Channel->new( fh => $socket, on_msg => sub {...}, on_close => sub {...}, on_err => sub {...} ); $ch->send(Argon::Message->new(...));
Internal class implementing the line protocol API used for non-blocking socket connections.
File handle for the connected socket. Assumed to be non-blocking.
A code ref that is called when a new Argon::Message arrives. The message is passed as the only argument.
A code ref that is called when the connection is closed.
A code ref that is called when an error occurs during socket communication. The error message is passed as the only argument.
Sends an Argon::Message over the socket.
Jeff Ober <sysread@fastmail.fm>
This software is copyright (c) 2017 by Jeff Ober.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Argon, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Argon
CPAN shell
perl -MCPAN -e shell install Argon
For more information on module installation, please visit the detailed CPAN module installation guide.