I need Gnutella coding help

iluvcrazeekats2

New member
I'm making my own GNUTELLA client because it doesn't have the functionality I want...

Using C++, I first send a string:
"GNUTELLA CONNECT/0.4/n/n"

Then I recieve the string:
"GNUTELLA OK/n/n"

But I can't get any more information from the server.

I tried sending a single byte string that had the data of 0 in it, but that didn't work.

Any help is appreciative

After recieving I did:

char c1[400];
c1[0]=0;
send(Socket,c1,1,0);

But I recieved nothing else... Any hel?
 
You might want to consider starting with source code for an existing servent and modifying it to suit your needs. Gnewtella is a wise choice.

There is a considerable amount of working involved in supporting just the basic protocol - this doesn't even include transfers.
 
Back
Top