[freenet-dev] Reading PersistentPut and PersistentGet problem

2009-08-27 Thread Matthew Toseland
On Thursday 27 August 2009 13:00:41 bbackde at googlemail.com wrote: > You should process the messages in a Thread. Put your code into a Thread > that calls handler methods when a specific message arrived. > The Thread runs forever and receives all messages and all data... All you need to do is pa

[freenet-dev] Reading PersistentPut and PersistentGet problem

2009-08-27 Thread bbac...@googlemail.com
You should process the messages in a Thread. Put your code into a Thread that calls handler methods when a specific message arrived. The Thread runs forever and receives all messages and all data... On Thu, Aug 27, 2009 at 03:22, Michael Yip wrote: > Hi guys, > > Does anyone know how to know when

Re: [freenet-dev] Reading PersistentPut and PersistentGet problem

2009-08-27 Thread Matthew Toseland
On Thursday 27 August 2009 13:00:41 bbac...@googlemail.com wrote: > You should process the messages in a Thread. Put your code into a Thread > that calls handler methods when a specific message arrived. > The Thread runs forever and receives all messages and all data... All you need to do is parse

Re: [freenet-dev] Reading PersistentPut and PersistentGet problem

2009-08-27 Thread bbackde
You should process the messages in a Thread. Put your code into a Thread that calls handler methods when a specific message arrived. The Thread runs forever and receives all messages and all data... On Thu, Aug 27, 2009 at 03:22, Michael Yip wrote: > Hi guys, > > Does anyone know how to know when

[freenet-dev] Reading PersistentPut and PersistentGet problem

2009-08-27 Thread Michael Yip
Hi guys, Does anyone know how to know when I've read all the PersistentPut and PersistentGet messages at the start? There's no way of knowing how many there are and I have no idea how to know when to stop reading? Below is the code I've written: String line; while((line = buffI

[freenet-dev] Reading PersistentPut and PersistentGet problem

2009-08-26 Thread Michael Yip
Hi guys, Does anyone know how to know when I've read all the PersistentPut and PersistentGet messages at the start? There's no way of knowing how many there are and I have no idea how to know when to stop reading? Below is the code I've written: String line; while((line = buffI