IOMux::Bundle - logical group of connections
IOMux::Bundle is a IOMux::Handler::Read is a IOMux::Handler IOMux::Bundle is a IOMux::Handler::Write is a IOMux::Handler IOMux::Bundle is extended by IOMux::IPC
my $syscall = IOMux::Bundle::Parallel->new(...); $mux->add($syscall);
A bundle is a set of file handles, so a convenience wrapper around a set of different connections with a single purpose.
The stdin, stdout and stderr objects are from the perspective of the other side.
stdin
stdout
stderr
-Option --Defined in --Default fh IOMux::Handler <required> name IOMux::Handler <stringified handle> read_size IOMux::Handler::Read 32768 stderr <undef> stdin <required> stdout <required> write_size IOMux::Handler::Write 4096
Called when new input has arrived on the error channel. It is passed a reference to the error BUFFER. It must remove any input that it you have consumed from the BUFFER, and leave any partially received data in there for more text to arrive.
example:
# actually, this is the default behavior sub mux_error { my ($self, $errbuf) = @_; print STDERR $$errbuf; $$errbuf = ''; }
This module is part of IOMux distribution version 0.12, built on January 27, 2011. Website: http://perl.overmeer.net/ All modules in this suite: "Any::Daemon", "IOMux", and "IOMux::HTTP".
Please post questions or ideas to perl@overmeer.net
Copyrights 2011 by Mark Overmeer. For other contributors see ChangeLog.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://www.perl.com/perl/misc/Artistic.html
To install IOMux, copy and paste the appropriate command in to your terminal.
cpanm
cpanm IOMux
CPAN shell
perl -MCPAN -e shell install IOMux
For more information on module installation, please visit the detailed CPAN module installation guide.