Skip to content

Commit

Permalink
- Updated the docs to make them Windows-friendly.
Browse files Browse the repository at this point in the history
  • Loading branch information
feisley committed Aug 30, 2009
1 parent bead786 commit 81fe552
Show file tree
Hide file tree
Showing 4 changed files with 984 additions and 984 deletions.
112 changes: 56 additions & 56 deletions docs/connect_states.txt
@@ -1,56 +1,56 @@
Different States?

1 Offline, no desire to reconnect
2 Offline, connect after a timeout because previous attempt failed
3 Offline, waiting for blockers (DNS and/or changeUDP)

4 Online, ICM
5 Online, Syncing
6 Online, Syncd


State 2 + Received IQ:
clear reconnect timer
goto 6 as the sole node


When DC client disconnects:
If not persistent:
clear reconnect timer
if online, set 5-minute disconnect timer

When a disconnect/failure happens:
clear the disconnect timer.
call "SetReconnectTimer"

"SetReconnectTimer":
If ((dc client) or (persistent)) and (no blockers):
schedule reconnect

When DC client Connects, or startup in persistent mode:
call "ConnectionDesired"

"ConnectionDesired":
If in {4,5,6} stay there

If DNS info is stale or missing:
Do DNS query
add a blocker for DNS

call "ConnectIfNoBlockers"

When the reconnect timer fires:
call "ConnectIfNoBlockers"

When a blocker is added:
disconnect
clear disconnect timer
clear reconnect timer

When a blocker is removed:
call "ConnectIfNoBlockers"

"ConnectIfNoBlockers":
If there are no blockers left:
if (dc client) or (persistent):
launch ICM (goto 4)
Different States?
1 Offline, no desire to reconnect
2 Offline, connect after a timeout because previous attempt failed
3 Offline, waiting for blockers (DNS and/or changeUDP)
4 Online, ICM
5 Online, Syncing
6 Online, Syncd
State 2 + Received IQ:
clear reconnect timer
goto 6 as the sole node
When DC client disconnects:
If not persistent:
clear reconnect timer
if online, set 5-minute disconnect timer
When a disconnect/failure happens:
clear the disconnect timer.
call "SetReconnectTimer"
"SetReconnectTimer":
If ((dc client) or (persistent)) and (no blockers):
schedule reconnect
When DC client Connects, or startup in persistent mode:
call "ConnectionDesired"
"ConnectionDesired":
If in {4,5,6} stay there
If DNS info is stale or missing:
Do DNS query
add a blocker for DNS
call "ConnectIfNoBlockers"
When the reconnect timer fires:
call "ConnectIfNoBlockers"
When a blocker is added:
disconnect
clear disconnect timer
clear reconnect timer
When a blocker is removed:
call "ConnectIfNoBlockers"
"ConnectIfNoBlockers":
If there are no blockers left:
if (dc client) or (persistent):
launch ICM (goto 4)
16 changes: 8 additions & 8 deletions docs/dns_format.txt
@@ -1,8 +1,8 @@
== DNS CONFIGURATION DATA FORMAT ==



version=<minver> <newver> http://foo.bar.baz/dtella.zip
minshare=256M
pkhash=[base64-encoded MD5 hash of public key]
ipcache=[time4 + ipport + ipport + ipport (up to 16)] encrypted as a packet, then base64-encoded (~150 bytes)
== DNS CONFIGURATION DATA FORMAT ==
version=<minver> <newver> http://foo.bar.baz/dtella.zip
minshare=256M
pkhash=[base64-encoded MD5 hash of public key]
ipcache=[time4 + ipport + ipport + ipport (up to 16)] encrypted as a packet, then base64-encoded (~150 bytes)

0 comments on commit 81fe552

Please sign in to comment.