Gnutella Forums  

Go Back   Gnutella Forums > Gnutella News and Gnutelliums Forums > General Gnutella Development Discussion
Register FAQ The Twelve Commandments Members List Calendar Arcade Find the Best VPN Today's Posts

General Gnutella Development Discussion For general discussion about Gnutella development.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old April 3rd, 2002
Unregistered
Guest
 
Posts: n/a
Question Creating header struct

Hi.
I want to know if I understand.

To send a Descriptor header I must to do this struct:

string 16 characters (to Descriptor ID)
integer (to payload descriptor)
integer (to TTL)
integer (to HOPS)
long (to payload lenght)

Then I must to create a struct {

} containing this fields and send it to other servents, that´s correct?
Reply With Quote
  #2 (permalink)  
Old April 3rd, 2002
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
  #3 (permalink)  
Old April 4th, 2002
Unregistered
Guest
 
Posts: n/a
Default

Don't re-write the world. See Gnucleus or gtk-gnutella source code.
Reply With Quote
  #4 (permalink)  
Old April 4th, 2002
Unregistered
Guest
 
Posts: n/a
Default

Where can I find that source code?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Zip Header Geoff114 General Mac Support 1 November 30th, 2005 08:18 AM
zip header Unregistered Download/Upload Problems 2 June 25th, 2002 07:22 AM
Header struct Cerebro General Gnutella Development Discussion 12 May 2nd, 2002 06:13 AM
zip header, osx Unregistered Mac OSX 1 April 2nd, 2002 07:07 AM
zip header Unregistered Mac OSX 2 March 18th, 2002 05:53 PM


All times are GMT -7. The time now is 08:01 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.