diff options
-rw-r--r-- | conn-notes.txt | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/conn-notes.txt b/conn-notes.txt index f4964829..433e74b3 100644 --- a/conn-notes.txt +++ b/conn-notes.txt | |||
@@ -9,7 +9,7 @@ data ToxProgress | |||
9 | deriving (Eq,Ord,Enum,Show) | 9 | deriving (Eq,Ord,Enum,Show) |
10 | 10 | ||
11 | 11 | ||
12 | Information about concat toxid and events that provide it. | 12 | Information about contact toxid and events that provide it. |
13 | ---------------------------------------------------------- | 13 | ---------------------------------------------------------- |
14 | SockAddr | 14 | SockAddr |
15 | receive packet with dhtkey associated with toxid | 15 | receive packet with dhtkey associated with toxid |
@@ -25,16 +25,25 @@ Information about concat toxid and events that provide it. | |||
25 | Recurring tasks associated with obtaining a connection. | 25 | Recurring tasks associated with obtaining a connection. |
26 | ------------------------------------------------------- | 26 | ------------------------------------------------------- |
27 | while (account is active): | 27 | while (account is active): |
28 | announce{toxid} | 28 | tox4id:announce{toxid} |
29 | tox6id: | ||
29 | 30 | ||
30 | while (policy=TryingToConnect and friend session is not established) | 31 | while (policy=TryingToConnect and friend session is not established) |
31 | search{toxid} contact, send my dhtkey to results | 32 | search{toxid} contact, send my dhtkey to results |
33 | (AwaitingDHTKey .. AwaitingSessionPacket) | ||
32 | 34 | ||
33 | while (dhtkey is fresh but sockaddr is stale) | 35 | while (dhtkey is fresh but sockaddr is stale) |
34 | search{node} dhtkey | 36 | search{node} dhtkey |
37 | (AcquiringIPAddress..) | ||
35 | 38 | ||
36 | while (dhtkey and sockaddr are fresh) | 39 | while (dhtkey and sockaddr are fresh) |
40 | (AcquiringCookie) | ||
41 | getCookie { on timeout, consider sockaddr stale, set sockaddr to Nothing) | ||
42 | (AwaitingHandshake) | ||
37 | send handshake | 43 | send handshake |
38 | 44 | ||
39 | 45 | ||
40 | 46 | On inbound | |
47 | ---------- | ||
48 | Handshake recieved! | ||
49 | (AwaitingSessionPacket) | ||