View Single Post
  #2 (permalink)  
Old April 3rd, 2002
Smilin' Joe Fission Smilin' Joe Fission is offline
Gnutella Veteran
 
Join Date: March 14th, 2002
Location: Canada
Posts: 121
Smilin' Joe Fission is flying high
Default 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.
Reply With Quote