IO::EventMux

IO::EventMux is a multiplexer for sockets, pipes and any other types of filehandles.
Download

IO::EventMux Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Jonas Jensen and Troels Liebe Bentsen
  • Publisher web site:
  • http://search.cpan.org/~tlbdk/IO-EventMux-1.02/lib/IO/EventMux.pm

IO::EventMux Tags


IO::EventMux Description

IO::EventMux is a multiplexer for sockets, pipes and any other types of filehandles. IO::EventMux is a multiplexer for sockets, pipes and any other types of filehandles that you can set O_NONBLOCK on and does buffering for the user.SYNOPSIS use IO::EventMux; my $mux = IO::EventMux->new(); $mux->add($my_fh, Listen => 1); while (1) { my $event = $mux->mux(); # ... do something with $event->{type} and $event->{fh} }This module provides multiplexing for any set of sockets, pipes, or whatever you can set O_NONBLOCK on. It can be useful for both server and client processes, but it works best when the application's main loop is centered around its mux() method.The file handles it can work with are either perl's own typeglobs or IO::Handle objects (preferred). Requirements: · Perl


IO::EventMux Related Software