Re: Encoding !!

[email protected]
Newsgroups gmane.network.gnutella.devel
Organization Home, Grenoble, France
Message-ID <[email protected]>
Quoting rakesh <[email protected]> from ml.gnutella.dev-forum:
:In handshaking, Gnutella peer send "Content-Encoding: deflate" for the response
:of "Accept-Encoding: deflate" , if it has support for deflate.
:
:My question is :
:Is it possible that data may be or may not be encoded  or all the communication
:between the peers are encoded ?
:
:How peer detects that data is encoded or not ?

It's easy: if the remote servent sends you "Content-Encoding: deflate",
then data that will be sent after the handshaking phase is over will be
deflated.

When you say "Accept-Encoding: deflate" to the other party, you simply
tell it that you will be able to handle deflated data, should the remote
party answer with "Content-Encoding: deflate".

Thanks to the 3-way handshaking, the 2 parties can mutually negotiate
traffic compression since they both have the opportunity to emit the
"Accept-Encoding: deflate" header and have "Content-Encoding: deflate"
sent back by the other party..

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