CS 32 Project 4 FAQ

CS 32 Project 4 FAQ - Winter 2009 CS 32 Project 4 FAQ Can...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Winter 2009 CS 32 Project 4 FAQ Can you give us a hint about what data structure to use to keep track of the packet numbers and offsets when adding packets to the buffer? t One way is to keep a list or vector of packet information objects, where each object holds the packet number, the start offset of the packet's data, the length of the packet, etc. For example, for the data stream F ABCDEFGHIJKLMNOP A broken into packets b ABC DEFGHI JKLMN OP O your container could hold: packet 0: starts at offset 0, has 3 bytes packet 1: starts at offset 3, has 6 bytes packet 2: starts at offset 9, has 5 bytes
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/07/2009 for the course CS 32 taught by Professor Davidsmallberg during the Winter '08 term at UCLA.

Ask a homework question - tutors are online