in reply to Re^9: IO::Socket Listen
in thread IO::Socket Listen
Try the unbuffered read() function instead of sysread()
You've got it the wrong way round. Perl's read function is buffered, while sysread is unbuffered. sysread is implemented via tha low-level system (OS) call read(2) (man 2 read), which is why it's called sysread. It's this read(2) that the documentation of sysread is talking about.
That said, flushing the socket after the print is certainly a good idea, though.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^11: IO::Socket Listen
by Marshall (Canon) on Dec 08, 2011 at 12:08 UTC | |
by Secalles (Initiate) on Dec 09, 2011 at 12:54 UTC | |
by Secalles (Initiate) on Dec 09, 2011 at 14:22 UTC | |
by Marshall (Canon) on Dec 12, 2011 at 00:57 UTC | |
by Secalles (Initiate) on Dec 12, 2011 at 15:16 UTC |