in reply to IO::Socket::INET->getline() function
I'm guessing it will wait until a newline character is sent, or the sending socket closes. Setting an alarm on it might be possible, or an IO::Select timeout. Using sysread is a workaround, but then you need to reassemble the lines at the receiving end.
See stackoverflow discussion of getline()
The method getline() and getlines() are in perldoc IO::Handle.
I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: IO::Socket::INET->getline() function
by akagrawal3 (Beadle) on Apr 27, 2012 at 11:30 UTC | |
by zentara (Cardinal) on Apr 27, 2012 at 14:37 UTC |