Commit 67ca5a86 authored by Dave Griffiths's avatar Dave Griffiths
Browse files

docs

parent f5d8f4a5
...@@ -35,10 +35,10 @@ other clients. ...@@ -35,10 +35,10 @@ other clients.
In this way, data changes are merged and propagated through the system. In this way, data changes are merged and propagated through the system.
Syncing Syncing algorithm
------- -----------------
Sending data from client to server: Sending data from client to server is all about dirty flags:
| Android (client) | Raspberry Pi (server | | Android (client) | Raspberry Pi (server |
|-------------------------------|------------------------------| |-------------------------------|------------------------------|
...@@ -46,6 +46,8 @@ Sending data from client to server: ...@@ -46,6 +46,8 @@ Sending data from client to server:
| For each dirty entity, send all dirty attributes | Return message to confirm reciept | | For each dirty entity, send all dirty attributes | Return message to confirm reciept |
| | Overwrite all dirty attributes, increment version number | | | Overwrite all dirty attributes, increment version number |
Receiving changes from the server to the client is all about version numbers:
| Android (client) | Raspberry Pi (server | | Android (client) | Raspberry Pi (server |
|-------------------------------|------------------------------| |-------------------------------|------------------------------|
| Request all entity version numbers | Send versions... | | Request all entity version numbers | Send versions... |
...@@ -54,12 +56,15 @@ Sending data from client to server: ...@@ -54,12 +56,15 @@ Sending data from client to server:
Code dependancies
-----------------
Common code is stored in /eavdb
| ktv | ktv-list | sql | | Notes | | |
| ----|-----------------|-----------------------| | ----|----------|----------------|
| | racket-fix | | Low level (data types and platform stuff) | ktv | ktv-list | sql/racket-fix |
| entity-values | entity-insert | entity-get | | Entity read/write | entity-values | entity-insert | entity-get |
| entity-update | | Updating entities | entity-update |
| entity-sync | entity-filter | | Higher level features | entity-sync | entity-filter |
| eavdb | | Top level stuff | eavdb |
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment