IO::Multiplex

IO::Multiplex is a Perl module that can manage IO on many file handles.
Download

IO::Multiplex Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Rob Brown
  • Publisher web site:
  • http://karmatics.com/aardvark/

IO::Multiplex Tags


IO::Multiplex Description

IO::Multiplex is a Perl module that can manage IO on many file handles. IO::Multiplex is a Perl module that can manage IO on many file handles.SYNOPSIS use IO::Multiplex; my $mux = new IO::Multiplex; $mux->add($fh1); $mux->add(*FH2); $mux->set_callback_object(...); $mux->listen($server_socket); $mux->loop; sub mux_input { ... }IO::Multiplex is designed to take the effort out of managing multiple file handles. It is essentially a really fancy front end to the select system call. In addition to maintaining the select loop, it buffers all input and output to/from the file handles. It can also accept incoming connections on one or more listen sockets.It is object oriented in design, and will notify you of significant events by calling methods on an object that you supply. If you are not using objects, you can simply supply __PACKAGE__ instead of an object reference.You may have one callback object registered for each file handle, or one global one. Possibly both -- the per-file handle callback object will be used instead of the global one.Each file handle may also have a timer associated with it. A callback function is called when the timer expires. Requirements: · Perl


IO::Multiplex Related Software