summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2018-06-18 17:24:14 -0400
committerjoe <joe@jerkface.net>2018-06-18 17:24:14 -0400
commit7bf9b4bc9d327c8952559f1c670bdf607fc7ac82 (patch)
tree3688ac568fc877bc3c26ce58987d6f0f47316ea7
parent58ba472d59c2c20a9c525c36cf36ad02c1826331 (diff)
Added more details about design of announcer tasks.
-rw-r--r--conn-notes.txt29
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
45Plan: Suppose our user key is OrjBG.GyWuQhGc1pb0KssgmYAocohFh35Vx8mREC9Nu and we have
46a contact with user key DdhbLjiwaV0GAiGKgesNPbvj2TbhrBHEWEEc5icfvQN. The following AnnounceKeys
47will 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
71The toxid:* task will be scheduled as long as you are online. The dhtkey:* and
72connect:* will only be scheduled when there is no active "netcrypto" session
73link with your contact.
45 74
46On inbound 75On inbound
47---------- 76----------