How to add a friend
[cascardo/f2fchat.git] / doc / workflows.txt
1 Socket receive messages:
2         1) Check authenticity.
3                 a) From self, accept any commands.
4                 b) From a friend, accept some commands.
5                 c) From unknown friend, accept less commands, or queue
6                         for authorization.
7
8 Example: add new friend
9
10 1) Receive message from unknown friend.
11 2) Add to queue (inbox?) for friendship.
12 3) Self connects, ask for last messages in queue (inbox).
13 4) Self sends message adding friend.