next up previous contents index
Next: Message header Up: Establishing connections Previous: Gnutella 0.4   Contents   Index

Gnutella 0.6

  1. 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)
  2. C sends capability headers (not including vendor specific headers), each terminated by \r\n, with an extra \r\n at the end
  3. 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
  4. S sends all its headers in the same format as in step 2
  5. 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
  6. C sends any vendor specific headers to S in the same format as in step 2
  7. Connection is established and C and S can exchange messages



Marcus Bergner 2003-06-10