diff options
author | joe <joe@jerkface.net> | 2018-06-18 17:24:14 -0400 |
---|---|---|
committer | joe <joe@jerkface.net> | 2018-06-18 17:24:14 -0400 |
commit | 7bf9b4bc9d327c8952559f1c670bdf607fc7ac82 (patch) | |
tree | 3688ac568fc877bc3c26ce58987d6f0f47316ea7 | |
parent | 58ba472d59c2c20a9c525c36cf36ad02c1826331 (diff) |
Added more details about design of announcer tasks.
-rw-r--r-- | conn-notes.txt | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/conn-notes.txt b/conn-notes.txt index a072afec..c1bbed00 100644 --- a/conn-notes.txt +++ b/conn-notes.txt | |||
@@ -42,6 +42,35 @@ while (account is active): | |||
42 | (AwaitingHandshake) | 42 | (AwaitingHandshake) |
43 | send handshake | 43 | send handshake |
44 | 44 | ||
45 | Plan: Suppose our user key is OrjBG.GyWuQhGc1pb0KssgmYAocohFh35Vx8mREC9Nu and we have | ||
46 | a contact with user key DdhbLjiwaV0GAiGKgesNPbvj2TbhrBHEWEEc5icfvQN. The following AnnounceKeys | ||
47 | will be scheduled: | ||
48 | |||
49 | toxid:OrjBG.GyWuQhGc1pb0KssgmYAocohFh35Vx8mREC9Nu | ||
50 | |||
51 | This task searches for our own user key, and publishes itself | ||
52 | at rendezvous nodes. | ||
53 | |||
54 | dhtkey:DdhbLjiwaV0GAiGKgesNPbvj2TbhrBHEWEEc5icfvQN | ||
55 | |||
56 | This task searches for our contact's user key and uses the | ||
57 | rendezvous nodes that it finds in order to share our dhtkey | ||
58 | with our contact. | ||
59 | |||
60 | |||
61 | connect:DdhbLjiwaV0GAiGKgesNPbvj2TbhrBHEWEEc5icfvQN | ||
62 | |||
63 | Depending on whether or not the ip/port is "fresh", this task | ||
64 | has two modes only one of which is active at a time: | ||
65 | |||
66 | (1) (stale) Search for our contact's dhtkey (nodeid) in order | ||
67 | to discover his ip address and port. | ||
68 | |||
69 | (2) (fresh) Send handshakes to our friend every 5 seconds. | ||
70 | |||
71 | The toxid:* task will be scheduled as long as you are online. The dhtkey:* and | ||
72 | connect:* will only be scheduled when there is no active "netcrypto" session | ||
73 | link with your contact. | ||
45 | 74 | ||
46 | On inbound | 75 | On inbound |
47 | ---------- | 76 | ---------- |