Re: Re: Deflate Encoding

mark W <[email protected]>
Newsgroups gmane.network.gnutella.devel
Message-ID <[email protected]>
Hi,
   Thanks for the reply.
I have implemented asymetric compression means during first handshake, I am adding Accept Encoding:Deflate, I am <B>not </b> adding content encoding as of now.
  I am having the tough time here, when I get a response the a stream and further if I try to decompress the stream i get an error.
 To double check it I have created lots of dump files from each node and verified it thru my sample C# based Gnutella application.  I have also tried decompression using ICSharpCode.SharpZipLib but still no go.
 My receive buffer is currently 65000 bytes (earliar it was 2048) but I increased as I was suspecting that might be packet is getting dropped.

How to I verify whether the stream I am receiving is in correct deflate format?I tried google but didnt find any support of deflate in Gnutella1 (As i am not interested in Gnutella2) .

Thanx in adv.

Regards,
Waugh

[email protected] wrote:                                  Quoting mark W <[email protected]> from ml.gnutella.dev-forum:
 :   I am working with Gnutella protocol and got stuck with Deflate data.  Thus,
 :for analysis I have captured the whole stream returned and stored it as dat file.
 
 The simplest for you at this point is to connect to another Gnutella servent
 locally (pick whichever servent you want) and establish a Gnutella connection
 with asymetric compression: you send out plain traffic, but accept to get
 deflated input from the other servent.
 
 Then you'll be able to get your inflation right.  Once you have inflation
 all right (that's the easiest part, mind you), then you'll be able to work
 on deflating the stream and immediately checking that it is correct by
 plugging your inflating-only servent at the other end and making sure
 you get correct traffic.
 
 Then you'll have both sides working (inflation and deflation).
 
 Good luck.
 
 Raphael
 
     
                       

 Send instant messages to your online friends http://uk.messenger.yahoo.com 

[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.