Welcome to the Monastery | |
PerlMonks |
Re: Input of a Data Streamby gbarr (Monk) |
on Oct 05, 2001 at 21:24 UTC ( [id://117049]=note: print w/replies, xml ) | Need Help?? |
In order to give a full response we would need to know more.
Is the data you are reading line based ? Does the app need to read from more than one connection at a time ? Depending on what your answers are will change how many short-cuts you can take. If this is just a simple app that reads a line based datastream from just the one socket then you can do
But if you want to read from more than one socket at a time then you will need to use sysread and select
In Section
Seekers of Perl Wisdom
|
|