I guess there was 'sort of' a similar question asked recently. See if
http://www.gnutellaforums.com/genera...urce-code.html is of assistance at all.
Perhaps your question is a little more general re: the protocol itself, which had me with juggling thoughts whether to move your thread-posting to this section or the one just above it.
I'm sure Arne_Bab will be happy to help if he visits the forums again soon (outside of other commitments.) Else someone else might help.
Edit: I moved the thread to a more general section.