View Single Post
  #4 (permalink)  
Old January 4th, 2002
Tamama Tamama is offline
Enthusiast
 
Join Date: January 1st, 2002
Posts: 34
Tamama is flying high
Default

ok after some talking etc etc

[] = optional
--- = seperator, in between lines are \r\n seperated
... = repeat

client:

---
CONNECT GNUTELLA/0.7
User-Agent: FastFinder 3.4
ultrapeer: 0.1, 0.2
Gnutella: 0.7
[more header-information]

---

server:

---
GNUTELLA/0.7 OK All dandy and fine nice mister client
User-Agent: Peerhana 0.5
ultrapeer: 0.2
ultrapeer: 0.3
Gnutella: 0.7, 0.8, 0.9
[more header-information]

---
<binary data starts>

As you can see header fields are used to tag _all_ allowed extensions. The extensions that are common are automatically activated.

header fields are build up as the following:

&lt;name&gt; : &lt;content&gt;
&lt;name&gt; = &lt;string&gt;
&lt;content&gt; = &lt;string [,&lt;string&gt;...]
&lt;string&gt; = array of characters not containing special characters like \r\n : , etc.

This allows for shorter headers as version numbers can be put on 1 line


Tam

Last edited by Tamama; January 4th, 2002 at 02:53 PM.
Reply With Quote