POE::Filter::Line - POE Line Protocol Abstraction


NAME

POE::Filter::Line - POE Line Protocol Abstraction


SUPPORTED PLATFORMS

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

SYNOPSIS

  $filter = new POE::Filter::Line();
  $arrayref_of_lines =
    $filter->get($arrayref_of_raw_chunks_from_driver);
  $arrayref_of_streamable_chunks_for_driver =
    $filter->put($arrayref_of_lines);
  $arrayref_of_streamable_chunks_for_driver =
    $filter->put($single_line);


DESCRIPTION

The Line filter translates streams to and from newline-separated lines. The lines it returns do not contain newlines. Neither should the lines given to it.

Incoming newlines are recognized with the regexp /(\x0D\x0A?|\x0A\x0D?)/. Incomplete lines are buffered until a subsequent packet completes them.

Outgoing lines have the network newline attached to them: "\x0D\x0A".


PUBLIC FILTER METHODS

Please see POE::Filter.


SEE ALSO

POE::Filter; POE::Filter::HTTPD; POE::Filter::Reference; POE::Filter::Stream


BUGS

This filter's newlines are hard-coded.


AUTHORS & COPYRIGHTS

Please see the POE manpage.

 POE::Filter::Line - POE Line Protocol Abstraction