summaryrefslogtreecommitdiff
path: root/docs/Messenger_Protocol.txt
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-07-18 11:47:27 -0400
committerirungentoo <irungentoo@gmail.com>2013-07-18 11:47:27 -0400
commitad44110fd54d5e0400f6f6749922e1c788d04f7d (patch)
treeadea517a8a16e113e5f381f7ca6ed3028d76cb39 /docs/Messenger_Protocol.txt
parente02620c7bed8764421b9b4c258e594369615da39 (diff)
Added nicknames and nickname syncing.
Diffstat (limited to 'docs/Messenger_Protocol.txt')
-rw-r--r--docs/Messenger_Protocol.txt17
1 files changed, 10 insertions, 7 deletions
diff --git a/docs/Messenger_Protocol.txt b/docs/Messenger_Protocol.txt
index 9362fdd2..377a6016 100644
--- a/docs/Messenger_Protocol.txt
+++ b/docs/Messenger_Protocol.txt
@@ -1,4 +1,6 @@
1Protocol for messages, data, video, etc.. 1Protocol for messages, data, etc..
2
3Streaming audio/video will not use this protocol as they can absorb some data loss.
2 4
3The protocol itself will run on top of the encryption which means it should be 5The protocol itself will run on top of the encryption which means it should be
4impossible for someone to know what type of data is being transmitted.(Well they 6impossible for someone to know what type of data is being transmitted.(Well they
@@ -12,6 +14,8 @@ Basic packet format:
12 14
13data_id represents the type of data. 15data_id represents the type of data.
14 16
17All strings must be UTF-8.
18
15EX: data_id 64 designates a chat message. so the packet would look like: @Hello WorldNULL 19EX: data_id 64 designates a chat message. so the packet would look like: @Hello WorldNULL
16Where @ is the ASCII character for 64, "Hello World" is the message and NULL is the null string terminator. 20Where @ is the ASCII character for 64, "Hello World" is the message and NULL is the null string terminator.
17 21
@@ -19,11 +23,10 @@ Proposed data_ids and what they mean (in decimal)
19 23
20ids 0 to 16 are reserved. 24ids 0 to 16 are reserved.
21 25
2648 Username (Send this packet as soon as you connect to a friend or to each friend everytime you change names.
27 Username is maximum 128 bytes long with the null terminator included)
28
22 29
2364 Chat message 3064 Chat message
2465 Audio Data(Voip) 316? File transmission.
2566 Video? 32
2667 File transmission.
2768
2869
29...