[ee122] question about buffer

Davide Cerri davide.cerri at gmail.com
Fri Nov 16 13:29:24 PST 2007


Hello,
how do we handle the buffer?
I mean, we have our windowsize, and whenever we receive a packet, we
free the window slot and we copy the data to some buffer. Whenever
somebody calls myreceive, we return the content of that buffer.
Here's the questions:
1 - do we return the content of the buffer if and only if we received
all the packages, so the buffer is not a partial transmission?
2 - what do we do if somebody is sending a crazy amount of data (ex
1tb)? that can't obviously be stored in a buffer?

thanks

-- 
~/Davide Cerri


More information about the ee122 mailing list