Ion::Conn - An Ion TCP socket connection
version 0.06
Returns the peer host IP.
Returns the peer port.
Writes data to the socket. The line is automatically appended with the value of $/.
$/
Returns the next line of data received on the socket. This method will cede control of the thread until a complete line is available. The value will have already been chomped to remove the line terminator ($/).
Closes the socket. After calling this method, the connection object may not be reopened.
Adds a subroutine to process outgoing messages to this client. Encoder subs are applied in the order in which they are added.
Adds a subroutine to decode incoming messages from this client. Decoder subs are applied in the order in which they are added.
Calls "readline".
$conn-
Calls "print".
Calls encodes.
Calls decodes.
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 Ion, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Ion
CPAN shell
perl -MCPAN -e shell install Ion
For more information on module installation, please visit the detailed CPAN module installation guide.