IOMux::Bundle - logical group of connections
IOMux::Bundle is an IOMux::Handler::Read is an IOMux::Handler IOMux::Bundle is an IOMux::Handler::Write is an 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.
Take stdin, stdout and stderr from the viewpoint of a client process which starts an external command. So, stdin will write to the stdin of the remote process, etc.
Extends "DESCRIPTION" in IOMux::Handler::Write.
Extends "DESCRIPTION" in IOMux::Handler::Read.
Extends "METHODS" in IOMux::Handler::Write.
Extends "METHODS" in IOMux::Handler::Read.
Extends "Constructors" in IOMux::Handler::Write.
Extends "Constructors" in IOMux::Handler::Read.
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
Inherited, see "Constructors" in IOMux::Handler
Extends "Accessors" in IOMux::Handler::Write.
Extends "Accessors" in IOMux::Handler::Read.
Inherited, see "Accessors" in IOMux::Handler
Inherited, see "Accessors" in IOMux::Handler::Read
Inherited, see "Accessors" in IOMux::Handler::Write
Extends "User interface" in IOMux::Handler::Write.
Extends "User interface" in IOMux::Handler::Read.
Extends "Multiplexer" in IOMux::Handler::Write.
Extends "Multiplexer" in IOMux::Handler::Read.
Extends "Connection" in IOMux::Handler::Write.
Extends "Connection" in IOMux::Handler::Read.
Inherited, see "Connection" in IOMux::Handler
Extends "Reading" in IOMux::Handler::Write.
Extends "Reading" in IOMux::Handler::Read.
Inherited, see "Reading" in IOMux::Handler::Read
Inherited, see "Reading" in IOMux::Handler
Extends "Writing" in IOMux::Handler::Write.
Extends "Writing" in IOMux::Handler::Read.
Inherited, see "Writing" in IOMux::Handler::Write
Inherited, see "Writing" in IOMux::Handler
Extends "Service" in IOMux::Handler::Write.
Extends "Service" in IOMux::Handler::Read.
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 muxError { my ($self, $errbuf) = @_; print STDERR $$errbuf; $$errbuf = ''; }
Extends "Helpers" in IOMux::Handler::Write.
Extends "Helpers" in IOMux::Handler::Read.
Inherited, see "Helpers" in IOMux::Handler
This module is part of IOMux distribution version 1.01, built on January 15, 2020. Website: http://perl.overmeer.net/CPAN
Copyrights 2011-2020 by [Mark Overmeer <markov@cpan.org>]. 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://dev.perl.org/licenses/
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.