Trying to upload a file But i've encountered several problems that lead me to the conclusion that i am missing something here.
Right now my biggest problem is that sending queryHit with a different sha1 for the file (not the correct one, just one i made up) starts the DL, where as using the correct one (should be, i've calculated the sha1) give me "no sources" in gtk-gnutella and the DL won't start. Other than the sha1 - the queryHit is the same - but with the fake sha1 i also get the HTTP GET message that asks for the file and i don't get it using the real sha1.
The reason i'm doing that is to test calculating the sha1 for a file i already have - when using the fake sha1 after i finish DL (using both gtk-gnutella and Phex for DL the file from my program) - it gives me a message about wrong sha1 (of course, i made the sha1 up) and restarting DL. Now i wanted to check the correct sha1 - and expected not to see this message.
This is my biggest problem right now, please help. |