POE::Wheel - POE FollowTail Protocol Logic


NAME

POE::Wheel - POE FollowTail Protocol Logic


SUPPORTED PLATFORMS

This module is not included with the standard ActivePerl distribution. It is available as a separate download using PPM.

SYNOPSIS

  $wheel = new POE::Wheel::FollowTail(
    Handle       => $file_handle,                 # File to tail
    Driver       => new POE::Driver::Something(), # How to read it
    Filter       => new POE::Filter::Something(), # How to parse it
    PollInterval => 1,                  # How often to check it
    InputState   => $input_event_name,  # State to call upon input
    ErrorState   => $error_event_name,  # State to call upon error
  );


DESCRIPTION

This wheel follows the end of an ever-growing file, perhaps a log file, and generates events whenever new data appears. It is a read-only wheel, so it does not include a put() method. It uses tell() and seek() functions, so it's only suitable for plain files. It won't tail pipes or consoles.


PUBLIC METHODS


EVENTS AND PARAMETERS


SEE ALSO

POE::Wheel; POE::Wheel::ListenAccept; POE::Wheel::ReadWrite; POE::Wheel::SocketFactory


BUGS

This wheel can't tail pipes and consoles. Blargh.


AUTHORS & COPYRIGHTS

Please see the POE manpage.

 POE::Wheel - POE FollowTail Protocol Logic