Troels Liebe Bentsen > IO-EventMux > IO::EventMux::Dump

Download:
IO-EventMux-2.02.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source  

NAME ^

IO::EventMux::Dump - A transparent subclass of IO::EventMux that dumps input/output activity to STDOUT

SYNOPSIS ^

  use IO::EventMux::Dump;

  my $mux = IO::EventMux::Dump->new();

  $mux->add($my_fh);

  while (1) {
    my $event = $mux->mux();

    # ... do something with $event->{type} and $event->{fh}
  }

send()

Wrapper for send call that will write filehandle fileno and data being send

mux()

Wrapper for mux call that will write filehandle fileno and data from "read" events.

AUTHOR ^

José Micó <jose.mico@gmail.com>

COPYRIGHT AND LICENCE ^

Copyright 2009: José Micó

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: