On Mon, Oct 01, 2001 at 03:23:27PM -0500, Bob Maccione wrote:
> Thanks, but that doesn't make it easy (of course) to create a Filter to read
> the complete string.  The closest I can get is to define an end of message
> indicator (for my app) and look for that.
> 
> Since I test the app with telnet I don't want to be too fancy (i.e. embed
> the length as the first X characters, etc).

If you make "\n" (possibly "\x0d\x0a") your end-of-message marker, you
can generate it easily from telnet by pressing the Enter key at the
end of your string.  On the POE side, use POE::Filter::Line.  It
specializes in parsing input based on end-of-message markers.

-- Rocco Caputo / [EMAIL PROTECTED] / poe.perl.org / poe.sourceforge.net

Reply via email to