[ee122] Receiving Packets

vern at cs.berkeley.edu vern at cs.berkeley.edu
Sun Dec 9 17:46:46 PST 2007


> For example, the receiver is expecting packet #1 to come.
> However, packets #2, #3 come first, so I store it up in some queue.  
> Once packet #1, can I give 1, 2, 3 to the application all at once? or  
> should I only give #1 now?

The usual bytestream semantics would be to deliver as much of the bytestream
as is now available, subject to the limit of how much buffer space the
receiving application provided when it called recv().

However, delivering the bytestream in several pieces in such a situation
isn't a big deal.

		Vern


More information about the ee122 mailing list