Thanks. I tried turning off buffering on both ends, that
did not work.
In your example, you only call sysread() once. Is that how you were doing it? If so, that's the mistake. The one call got you part of the data. Then you would loop, check and eventually call again to get the rest. Make sense?
Yes, make sense, but not sure how to "check". Is this where select() comes in?
No. Try this:
connect(SOCK, $remote) or die "can't connect: $!\n";
while($bytes = sysread(SOCK,$buf,4096)) { $data .= $buf; } print "read $bytes bytes from server.\n server said: $data";
-- Andrew Gaffney
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]