
April 3rd, 2002
|
Gnutella Veteran | | Join Date: March 14th, 2002 Location: Canada
Posts: 121
| |
Re: Creating header struct Quote: Originally posted by Unregistered integer (to payload descriptor)
integer (to TTL)
integer (to HOPS) | If you plan on using this same struct to create headers from, then each of the above fields should not be declared as integers. They are each only one byte long whereas an integer is 2 bytes long. Declare them as either "char" or "BYTE" (if your compiler supports the latter) instead. |