View Single Post
  #2 (permalink)  
Old 06-05-2007, 04:08 AM
Heather Heather is offline
Senior Member
 
Join Date: Jun 2007
Posts: 164
Heather is on a distinguished road
The sockets can be slows, depends on your connection.
The best is that you send an integer indicating how many bytes are you going to send. In other side, reads the integer, and then the number of bytes that indicates.

Another choice is that the sender closes the connection, in this way the receiver reading until the connection close.

good luck
Reply With Quote