Robbie wrote: > Whats the difference between a gnutella header and a gnutella message? > Is there any?
The gnutella header is the first 23 bytes of a gnutella message. Gnutella headers have nothing to do with HTTP headers. > 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? HTTP is only used for file transfers. The peer-to-peer procotol used by Gnutella isn't HTTP, only the initial handshake looks remotely like HTTP. Afterwards it's packet-based. > 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? You can create custom vendor messages. > 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). send() isn't used at all anywhere in gtk-gnutella. That's several layers too low. A gnutella_node is a peer-to-peer connection and no upload or download connection. You don't send X-Alt headers to peers. If you want to send specific alternate locations you're better of modifying dmesh_fill_alternate() or dmesh_alternate_location(). -- Christian ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ gtk-gnutella-devel mailing list gtk-gnutella-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel