queryHitMessage
"cmaeschig" <[email protected]>
| Newsgroups | gmane.network.gnutella.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi there! I'm writing a Gnutella Client for a social project, which will serve "nature/pollution" based content by reacting to predefined keywords. The client is based on JTella 0.8 with enhancements. At the moment, I'm stuck implementing the queryHitMessage-reply, which is fired, when a query message with one of my predefined keywords arrives. I follow the gnutella 0.6 specification an build a message with the content: byte0 : number of files ( 1 for example) bytes 1-2 : Port bytes 3-6 : IP Address of my client bytes 7-10: Speed of my client bytes 11-..: Filerecord, containing Filename, internal Hashcode and Size for each of the resulting files, Filerecords are followed by vendorcode, which is followed by my client-id (15 bytes + 0- termination). That's the message so far, but it doesn't seem to be displayed in the client of the receiver. Is there anything, I forgot? Are there any mistakes? Thanks a lot in advance, Chris