| IO-Mux documentation | view source | Contained in the IO-Mux distribution. |
IO::Mux::Bundle - logical group of connections
IO::Mux::Bundle is a IO::Mux::Handler::Read is a IO::Mux::Handler IO::Mux::Bundle is a IO::Mux::Handler::Write is a IO::Mux::Handler IO::Mux::Bundle is extended by IO::Mux::IPC
my $syscall = IO::Mux::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.
-Option --Defined in --Default fh IO::Mux::Handler <required> name IO::Mux::Handler <stringified handle> read_size IO::Mux::Handler::Read 32768 stderr <undef> stdin <required> stdout <required> write_size IO::Mux::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 IO-Mux distribution version 0.11, built on January 26, 2011. Website: http://perl.overmeer.net/ All modules in this suite: Any::Daemon, IO::Mux, and IO::Mux::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
| IO-Mux documentation | view source | Contained in the IO-Mux distribution. |