I actually fixed it. The fault was at the client end. worked on it for about 5 hours!
The read function in the client read in a char array of a fixed size. when the write from the server is bigger than that, it didnt display the whole thing.
I thought it was something wrong with at the server end and tried a million things. eventually i gave up and move on to implementing other requirements and while fixing something else i found out that bug!
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.