diff options
author | irungentoo <irungentoo@gmail.com> | 2014-11-19 20:57:35 -0500 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2014-11-19 20:57:35 -0500 |
commit | 3a6d93f0672425745d66c4cddf525e51611fcfc9 (patch) | |
tree | 9ca51b3fcee50fa856a3b617a60f98f40cc4a56c /docs | |
parent | c8301974c74e61c212afe38010725fef85d94ebf (diff) |
Small update to groupchat docs.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/Group-Chats.md | 11 |
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 | |||
9 | the invite or responds with a response packet if he wants to join the chat. The friend invite contains the type | 9 | the invite or responds with a response packet if he wants to join the chat. The friend invite contains the type |
10 | of groupchat (text only, A/V) the friend is being invited to. | 10 | of groupchat (text only, A/V) the friend is being invited to. |
11 | 11 | ||
12 | |||
12 | TODO: write more of this. | 13 | TODO: 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 | ||
30 | Peer query packet: | 31 | Peer 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 | ||
33 | Peer response packet: | 34 | Peer 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 | ||
37 | Title response packet: | ||
38 | [uint8_t id 98][uint16_t group chat number][uint8_t id 10][title] | ||
36 | 39 | ||
37 | Message packets: | 40 | Message 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. | |||
62 | 48 - name change | 65 | 48 - name change |
63 | [uint8_t name[namelen]] | 66 | [uint8_t name[namelen]] |
64 | 67 | ||
65 | 49 - status change | 68 | 49 - groupchat title change |
66 | [uint8_t (status id)] | 69 | [uint8_t title[titlelen]] |
67 | 70 | ||
68 | 64 - chat message | 71 | 64 - chat message |
69 | [uint8_t message[messagelen]] | 72 | [uint8_t message[messagelen]] |