Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Updated the docs to make them Windows-friendly.
- Loading branch information
Showing
4 changed files
with
984 additions
and
984 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) |
Oops, something went wrong.