Next: Message header
Up: Establishing connections
Previous: Gnutella 0.4
  Contents
  Index
- C sends the string
GNUTELLA CONNECT/0.6\r\n
where 0.6 is the protocol version and
\r denotes the carriage return character
(ASCII character 13)
- C sends capability headers (not
including vendor specific headers), each terminated by
\r\n, with an extra
\r\n at the end
- S responds with the string
GNUTELLA/0.6 200 string\r\n.
The string should be OK, but clients
are advised to only check the 200 code
- S sends all its headers in the same format as in step 2
- C responds with the string
GNUTELLA/0.6 200 OK\r\n, as in step
3 if the client, after parsing all headers sent by S,
still wants to connect. Otherwise a reply containing an
error code is sent and the connection is closed
- C sends any vendor specific headers to S in the same
format as in step 2
- Connection is established and C and S can exchange
messages
Marcus Bergner
2003-06-10