Gnutella Forums

Gnutella Forums (https://www.gnutellaforums.com/)
-   Gtk-Gnutella (Linux/Unix/Mac OSX/Windows) (https://www.gnutellaforums.com/gtk-gnutella-linux-unix-mac-osx-windows/)
-   -   Starting gtk-gnutella development (https://www.gnutellaforums.com/gtk-gnutella-linux-unix-mac-osx-windows/88798-starting-gtk-gnutella-development.html)

AussieGuy November 10th, 2008 11:02 PM

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.

AussieGuy November 11th, 2008 03:37 AM

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


All times are GMT -7. The time now is 05:55 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.