Subject: Assn 5 clarification ---- Reminder mid term exam is Tuesday --------- (This message is being sent to all CPSC 360 students) A couple of students have students have become confused on this issue: > I'm a little confused about rps_rcvdata. After finding out that len > > 0, the notes say to process the data in the buffer assuming the sequence > number is correct, but the buffer isn't passed into rps_rcvdata. While its true that the "buffer" isn't directly passed into rps_rcvdata, the address of the header, which comes immediately before the data is | (sizeof(rps_hdr_t) bytes | htons(hdr->len) bytes | ----------------------------------------------------------------------------- ^ TheHdr TheData | hdr Soooo...... char *TheData = (char *)hdr; TheData += sizeof(rps_hdr_t); will do just what you need.