in reply to Re^4: how send message without new-line terminator on IO::Socket
in thread how send message without new-line terminator on IO::Socket
sysread( $new_sock, $sres, 1024, length($sres) )
would be more efficient (see sysread).
Why are you chomping if you aren't sending newlines?
Why are you exiting your loop if 1/10th of second passes with no input? Shouldn't you exit when you reach end-of-file instead?
Why use select if you don't have anything asychronous to do? Just read until EOF, no?
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: how send message without new-line terminator on IO::Socket (sysread chomp select)
by earlati2 (Beadle) on Jul 27, 2006 at 07:33 UTC |