XAS::Lib::Pipe - Interact with named pipes
use XAS::Lib::Pipe; my $client = XAS::Lib::Pipe->new( -fifo => File('/var/lib/xas/pipe'), -filter => POE::Filter::Line->new(), -eol => "\n", ); $client->run();
The module provides a POE based framework for reading and writing to named pipes.
This initializes the module and starts listening on the pipe. The following parametrs are used:
The name of the POE session.
The name of the pipe to interact with.
An optional filter to use, defaults to POE::Filter::Line
An optional EOL, defaults to "\n";
This method will process the input from the pipe. It takes the following parameters:
The input received from the pipe.
This method will process the output for the pipe. It takes the following parameters:
The output to be sent to the pipe.
This method will process any errors from the pipe. It takes the following parameters:
The function that caused the error.
The OS error number.
The OS error string.
Kevin L. Esteb, <kevin@kesteb.us>
Copyright (c) 2012-2016 Kevin L. Esteb
This is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0. For details, see the full text of the license at http://www.perlfoundation.org/artistic_license_2_0.
To install XAS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XAS
CPAN shell
perl -MCPAN -e shell install XAS
For more information on module installation, please visit the detailed CPAN module installation guide.