Thanks for the response, your suggestions seemed to cure the problems. I
thought recv(n) would read until an EOL delimiter or n bytes whichever
came first.

I guess I still must get used to the fact that even though I'm writing
network code I don't have to use network type calls like send/recv when
normal IO calls like write/readline are available and simpler to use.

Much appreciated!
Farrel Lifson
-- 
|DNA Research Group             mailto:flifson / cs.uct.ac.za
|Dept. of Computer Science      http://www.cs.uct.ac.za/~flifson
|University of Cape Town        +27-21-650-3127