On 24/10/2011 13:14, Gary wrote:
Effectively what happens is that I get a decent chunk of data the first few times around the loop, all of RECV_BUF_SIZE (512) length, then a final 44 bytes, and the code thinks it's done. Then when the code executes again with another command, the recv loop gets the final few 512 byte chunks it should have got before. Is there a decent set of documentation for how to use IO:Socket anywhere? Can anyone see what I'm doing wrong? (Probably I shouldn't be using send/recv, but without any hints from the documentation...)
It sounds to me like your sender isn't flushing its output at the end of each chunk? Because you're getting a short final buffer it seems pretty certain that taht is all that's been sent. Rob -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/