summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2014-11-19 20:57:35 -0500
committerirungentoo <irungentoo@gmail.com>2014-11-19 20:57:35 -0500
commit3a6d93f0672425745d66c4cddf525e51611fcfc9 (patch)
tree9ca51b3fcee50fa856a3b617a60f98f40cc4a56c /docs
parentc8301974c74e61c212afe38010725fef85d94ebf (diff)
Small update to groupchat docs.
Diffstat (limited to 'docs')
-rw-r--r--docs/Group-Chats.md11
1 files changed, 7 insertions, 4 deletions
diff --git a/docs/Group-Chats.md b/docs/Group-Chats.md
index 5fb45844..ccf3d413 100644
--- a/docs/Group-Chats.md
+++ b/docs/Group-Chats.md
@@ -9,6 +9,7 @@ A friend invites another friend to a group chat by sending them an invite packet
9the invite or responds with a response packet if he wants to join the chat. The friend invite contains the type 9the invite or responds with a response packet if he wants to join the chat. The friend invite contains the type
10of groupchat (text only, A/V) the friend is being invited to. 10of groupchat (text only, A/V) the friend is being invited to.
11 11
12
12TODO: write more of this. 13TODO: write more of this.
13 14
14## Protocol 15## Protocol
@@ -28,11 +29,13 @@ Peer leave packet:
28[uint8_t id 98][uint16_t group chat number][uint8_t id 1] 29[uint8_t id 98][uint16_t group chat number][uint8_t id 1]
29 30
30Peer query packet: 31Peer query packet:
31[uint8_t id 98][uint16_t group chat number][uint8_t id 4] 32[uint8_t id 98][uint16_t group chat number][uint8_t id 8]
32 33
33Peer response packet: 34Peer response packet:
34[uint8_t id 98][uint16_t group chat number][uint8_t id 5][Repeated times number of peers: [uint16_t peer num][uint8_t 32bytes real public key][uint8_t 32bytes temp DHT public key][uint8_t name length][name]] 35[uint8_t id 98][uint16_t group chat number][uint8_t id 9][Repeated times number of peers: [uint16_t peer num][uint8_t 32bytes real public key][uint8_t 32bytes temp DHT public key][uint8_t name length][name]]
35 36
37Title response packet:
38[uint8_t id 98][uint16_t group chat number][uint8_t id 10][title]
36 39
37Message packets: 40Message packets:
38[uint8_t id 99][uint16_t group chat number][uint16_t peer number][uint32_t message number][uint8_t with a value representing id of message][data] 41[uint8_t id 99][uint16_t group chat number][uint16_t peer number][uint32_t message number][uint8_t with a value representing id of message][data]
@@ -62,8 +65,8 @@ Tell everyone about a new peer in the chat.
6248 - name change 6548 - name change
63[uint8_t name[namelen]] 66[uint8_t name[namelen]]
64 67
6549 - status change 6849 - groupchat title change
66[uint8_t (status id)] 69[uint8_t title[titlelen]]
67 70
6864 - chat message 7164 - chat message
69[uint8_t message[messagelen]] 72[uint8_t message[messagelen]]