diff options
Diffstat (limited to 'docs/Messenger_Protocol.txt')
-rw-r--r-- | docs/Messenger_Protocol.txt | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/docs/Messenger_Protocol.txt b/docs/Messenger_Protocol.txt new file mode 100644 index 00000000..9362fdd2 --- /dev/null +++ b/docs/Messenger_Protocol.txt | |||
@@ -0,0 +1,29 @@ | |||
1 | Protocol for messages, data, video, etc.. | ||
2 | |||
3 | The protocol itself will run on top of the encryption which means it should be | ||
4 | impossible for someone to know what type of data is being transmitted.(Well they | ||
5 | could just analyze how much data is being transmitted for a pretty good guess) | ||
6 | |||
7 | Because it runs on the encryption which itself runs on our Lossless UDP protocol | ||
8 | it can be guaranteed that no data will be lost. | ||
9 | |||
10 | Basic packet format: | ||
11 | [char data_id][data] | ||
12 | |||
13 | data_id represents the type of data. | ||
14 | |||
15 | EX: data_id 64 designates a chat message. so the packet would look like: @Hello WorldNULL | ||
16 | Where @ is the ASCII character for 64, "Hello World" is the message and NULL is the null string terminator. | ||
17 | |||
18 | Proposed data_ids and what they mean (in decimal) | ||
19 | |||
20 | ids 0 to 16 are reserved. | ||
21 | |||
22 | |||
23 | 64 Chat message | ||
24 | 65 Audio Data(Voip) | ||
25 | 66 Video? | ||
26 | 67 File transmission. | ||
27 | 68 | ||
28 | 69 | ||
29 | ... | ||