Hey Wave Gurus,

Ok I am still working on the OT for my little swing client. I try to
implement the client algorithm from the "JUPITER whitepaper", that I
need for the collaborative editing. But I have serveral problems and
questions :)

1) How to detect the server acknowledge? Should I compare the
HashedVersion from my local wavelet and from the received delta [src:
deltaAndVersion.second] (is that the HistoryHash from the Client-
Server Protocol whitepaper?) , if the hashes are equal and the version
from the received delta is higher than my local version, the operation
is acknowledged? Or I am wrong?

2) I work in my client with three threads:
    - event-dispatch-thread (swing): apply the operation to my local
document and add it to a queue (FIFO).
    - consumer thread: take the operation from the queue and send it
to the server, then wait for the acknowledge
    - receiver thread: its the (network) thread where the
"receiveWaveletUpdate" method runs. Here I filter the  acknowledge and
tell my consumer thread to send the next operation or (if its not a
acknowledge) transform the incoming operation against the queue and
apply the operation to the local wavelet. Is that the right way?

3) It is very hard for me to synchronize these threads. I think the
receiver thread has the highest priority, because the operations which
the consumer threads sends, has to be on the server´s OT path. What
happens when the consumer thread sends a operation, and receiver
thread gets asynchronously at same moment a operation, I think my
transmitted message wouldn´t be on the server´s OT path?

Maybe all of this is totally wrong. It would be so great, if someone
could give me some tips, or just say yes or no to my points.

Thanks!
tobber
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Wave 
Protocol" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/wave-protocol?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to