How to add a friend
[cascardo/f2fchat.git] / doc / workflows.txt
diff --git a/doc/workflows.txt b/doc/workflows.txt
new file mode 100644 (file)
index 0000000..14e935a
--- /dev/null
@@ -0,0 +1,13 @@
+Socket receive messages:
+       1) Check authenticity.
+               a) From self, accept any commands.
+               b) From a friend, accept some commands.
+               c) From unknown friend, accept less commands, or queue
+                       for authorization.
+
+Example: add new friend
+
+1) Receive message from unknown friend.
+2) Add to queue (inbox?) for friendship.
+3) Self connects, ask for last messages in queue (inbox).
+4) Self sends message adding friend.