diff options
author | irungentoo <irungentoo@gmail.com> | 2013-07-18 11:47:27 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-07-18 11:47:27 -0400 |
commit | ad44110fd54d5e0400f6f6749922e1c788d04f7d (patch) | |
tree | adea517a8a16e113e5f381f7ca6ed3028d76cb39 /docs/Messenger_Protocol.txt | |
parent | e02620c7bed8764421b9b4c258e594369615da39 (diff) |
Added nicknames and nickname syncing.
Diffstat (limited to 'docs/Messenger_Protocol.txt')
-rw-r--r-- | docs/Messenger_Protocol.txt | 17 |
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 @@ | |||
1 | Protocol for messages, data, video, etc.. | 1 | Protocol for messages, data, etc.. |
2 | |||
3 | Streaming audio/video will not use this protocol as they can absorb some data loss. | ||
2 | 4 | ||
3 | The protocol itself will run on top of the encryption which means it should be | 5 | 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 | 6 | impossible for someone to know what type of data is being transmitted.(Well they |
@@ -12,6 +14,8 @@ Basic packet format: | |||
12 | 14 | ||
13 | data_id represents the type of data. | 15 | data_id represents the type of data. |
14 | 16 | ||
17 | All strings must be UTF-8. | ||
18 | |||
15 | EX: data_id 64 designates a chat message. so the packet would look like: @Hello WorldNULL | 19 | 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. | 20 | Where @ 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 | ||
20 | ids 0 to 16 are reserved. | 24 | ids 0 to 16 are reserved. |
21 | 25 | ||
26 | 48 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 | ||
23 | 64 Chat message | 30 | 64 Chat message |
24 | 65 Audio Data(Voip) | 31 | 6? File transmission. |
25 | 66 Video? | 32 | |
26 | 67 File transmission. | ||
27 | 68 | ||
28 | 69 | ||
29 | ... | ||