Re: queryHitMessage

"cmaeschig" <[email protected]>
Newsgroups gmane.network.gnutella.devel
Message-ID <[email protected]>
Hi!

Thanks for your reply. Well, the reason why I decided to use JTella is, that it's very slim. My 
client will have no gui, no chat, (...). It only responds to certain keywords and offers files. 
Are there any examples on how to use phex as a "basic" client, without all of the 
additional classes aso.?

Thanks a lot in advance,

Chris



--- In [email protected], Arne Babenhauserheide <arne_bab@...> wrote:
>
> Hi Chris, 
> 
> I can't directly help you with the code, but I have a question: 
> 
> Is there a reason why you chose JTella (which is quite outdated, if I recall 
> correctly)? 
> 
> And why you didn't choose to modify one of the active clients to fit your 
> needs? 
> There you'd find a community of developers who know the code of the client in 
> question and who could help you implementing what you need. 
> 
> - Arne
> ------
> http://phex.org - Gnutella based p2p client in Java 
> ------
> 
> 
> 
> Am Montag, 12 de November de 2007 14:42:56 schrieb cmaeschig:
> > 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
> 
> 
> [Non-text portions of this message have been removed]
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.