You might want to have alook here:
http://gnuticles.gnufu.net/dev-infos.html
Initial Handshake
First from a_guest_in_the_machine from gnutellaforums.com: The initial handshake goes like this (contradicting current specs):
you
GNUTELLA CONNECT/0.6\r\n
\r\n
ultrapeer
GNUTELLA/0.6 200 (...)\r\n
(optional server specifics)\r\n
\r\n
you
GNUTELLA/0.6 200\r\n
\r\n