Gnutella Forums  

Go Back   Gnutella Forums > Current Gnutella Client Forums > Gtk-Gnutella (Linux/Unix/Mac OSX/Windows)
Register FAQ The Twelve Commandments Members List Calendar Arcade Find the Best VPN Today's Posts

Gtk-Gnutella (Linux/Unix/Mac OSX/Windows) Gtk-Gnutella user section. Preview this popular software: Gtk-Gnutella (Linux / BSD / Darwin / Mac OS X / Windows)


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old November 10th, 2008
Apprentice
 
Join Date: October 16th, 2008
Posts: 5
AussieGuy is flying high
Default Starting gtk-gnutella development

Whats the difference between a gnutella header and a gnutella message?
Is there any?

If there is, how is http involved? Is it just used for connecting, uploading and downloading or is it used for
everything else as well?

Whats a safe, harmless header/message (both a header and message if theyre different) that I can send at any time in an existing gnutella connection, to a gnutella servent so that I can test my header/message sending abilities? Im going to connect with gtk-gnutella and have its source code send the header/message to the node.

I have found the gnutella_node object as well as the gnutella_socket, and I can get a file descriptor for that
socket. I tried to send() an X-Alt header in ascii text (as defined in the huge specification) to the file descriptor and the remote host disconnected me (I was assuming that might be a safe header to send).

Anybody know where the function in gnutella is to send a header object or do you just manually write to the socket's file descriptor? gtk-gnutella doesnt have much documentation.
Reply With Quote
  #2 (permalink)  
Old November 11th, 2008
Apprentice
 
Join Date: October 16th, 2008
Posts: 5
AussieGuy is flying high
Default Update

Ive found the function that creates and sends a qhit message. (im presuming theirs functions to send other messages).

Now how do I send a header? Should I just create a string and then send() it to the socket file descriptor raw, or should I use the header_fmt functions? How do you send a header made by the header_fmt functions to a node?

-AussieGuy
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 09:12 PM.


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.