Eagor's Forums » CEN6520 - Project 2 » Maybe I have missed something...
Author Topic: Maybe I have missed something...
Mengshu Chen
Posts: 2
  Date Posted: 2005-02-06 22:54

Have we decided how our messages and message headers look like? Or have we already had some kind of public header files(Except for loader.h) for those public data types? And is this forum the only place that we may communicate with each other? Thanks!
 
David Mauk
Posts: 17
Date Posted: 2005-02-07 16:01

1. Yes we did decide what the header looks like:
Header:
Length 2 bytes
SourceIP 4 bytes
DestIP 4 bytes
ID 1 byte
Offset 2 bytes
Flag 1 byte (0=no more fragments Not Zero means there are more.)

This is for a total of 14 bytes for the entire header.

2. No, if you have AIM(AOL Instant Messanger)(you can also download it for free from www.aim.com) you can contact anyone else that has left their AIM Username. Currently I only see my "Plastic Rundigor" AIM account on these forums so probably right now you will only be able to get a hold of me if I am online.

Also you can email any of us by using our students.uwf.edu email accounts.
David Mauk
Posts: 17
Date Posted: 2005-02-07 22:12

One other thing we found out on thursday that C generates addresses for sturctures on WORD boundaries. Therefore if you make a header structure then the transfer it over the network the receiving end will actually receive more that the 14 bytes that we were expecting.

What was decided was that the the data will need to be mapped to a buffer of 14 char's so that we will send on 14 bytes.

One way that was proposed to map the data is memcpy().