Hey, just a quick question. When a client send()'s data to a server, and the server calls select(), will the server know data is waiting to be received until the entire message has been uploaded to a service provider and the whole thing is ready to be downloaded or something? Will the server, if it calls receive(), have to receive it say, 1 byte per second if that's how fast the client is uploading it, or will the client upload the whole thing at 1 byte per second then the server download it at say 150k per second?



LinkBack URL
About LinkBacks




But if I only recv() say 4 bytes, for the size of the message, then recv() only the number of bytes contained in the message, this should be a non-issue, right? Or would the double-recv be very costly?
). Should the size be in the 1kb or 10kb range maybe, or does it really matter (as long as it's not too extremely large or small)?