Ion::Server - An Ion TCP service
version 0.05
Starts the listening socket. Optionally accepts a port number and host interface on which to listen. If left unspecified, these will be assigned by the operating system.
Stops the listener and shuts down the incoming connection queue.
Cedes control until "stop" is called.
Returns the listening port of a started service.
Returns the host interface of a started service.
Returns the next incoming connection. This method will block until a new connection is received.
Adds a subroutine to process outgoing messages to clients of this server. Encoder subs are applied in the order in which they are added.
Adds a subroutine to decode incoming messages from clients of this server. Decoder subs are applied in the order in which they are added.
Calls "accept".
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.