From 4a56f3322849d4260a220b84d685f7ee1af62059 Mon Sep 17 00:00:00 2001 From: joe Date: Mon, 18 Jun 2018 04:10:47 -0400 Subject: More notes on obtaining tox connection. --- conn-notes.txt | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'conn-notes.txt') 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 deriving (Eq,Ord,Enum,Show) -Information about concat toxid and events that provide it. +Information about contact toxid and events that provide it. ---------------------------------------------------------- SockAddr receive packet with dhtkey associated with toxid @@ -25,16 +25,25 @@ Information about concat toxid and events that provide it. Recurring tasks associated with obtaining a connection. ------------------------------------------------------- while (account is active): - announce{toxid} + tox4id:announce{toxid} + tox6id: while (policy=TryingToConnect and friend session is not established) search{toxid} contact, send my dhtkey to results + (AwaitingDHTKey .. AwaitingSessionPacket) while (dhtkey is fresh but sockaddr is stale) search{node} dhtkey + (AcquiringIPAddress..) while (dhtkey and sockaddr are fresh) + (AcquiringCookie) + getCookie { on timeout, consider sockaddr stale, set sockaddr to Nothing) + (AwaitingHandshake) send handshake - +On inbound +---------- + Handshake recieved! + (AwaitingSessionPacket) -- cgit v1.2.3