Hi Matt, I know the ListPersistentRequests request and how it works. The problem lies in the interaction:
1. My client sends a ClientHello 2. Node replies with a NodeHello 3. Node sends a list of Persistent requests (PROBLEM! How do I determine when it would end?) 4. My client send desired requests and handle replies specific to the request. My problem is that the reader cannot terminate reading from stream at step 3 and so I can't do the things I want to do at step 4. Thanks for your help. Michael Matthew Toseland wrote: > On Thursday 27 August 2009 18:45:33 Michael Yip wrote: > >> Hi Ian, >> >> My name is Michael and for my MSc project, I have to run some >> experiments on Freenet to measure and quantify the amount of information >> an eavesdropper can get from observing the HTL and key closeness of >> requests. >> >> I was wondering if you could give me some pointers on my development. >> >> Basically, to do this, I'm writing a FCP client to upload files to a >> node. I'm experiencing difficulties in this. Below is a step by step >> view of what I want to achieve: >> >> 1. Send ClientHello and receive NodeHello reply >> 2. Read all the existing Persistent requests >> 3. Send my own requests. >> >> I can't seem to move from step 2 to step 3 as I don't know how many >> Persistent requests there are and since most messages end with >> EndMessage, I can't use that to determine if that's the end of the list >> of Persistent requests. >> > > ListPersistentRequests. The list will be ended by an > EndListPersistentRequests. However, these are only "your" requests anyway: if > you're not using the global queue, they are specific to your client (client > name in ClientHello). > >> How may I achieve this? >> >> Thank you very much for your kind attention. >> >> Best regards, >> >> Michael Yip >> MSc Computer Security >> University of Birmingham >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Devl mailing list >> Devl at freenetproject.org >> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
