summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/rfc.md24
-rw-r--r--docs/rfc.txt35
2 files changed, 52 insertions, 7 deletions
diff --git a/docs/rfc.md b/docs/rfc.md
index 69d0e29..3336cd4 100644
--- a/docs/rfc.md
+++ b/docs/rfc.md
@@ -159,9 +159,10 @@ Payload type attributes describes following characteristics:
| 0x01 | Success | SCE |
| 0x02 | Error | S |
| 0x03 | Handshake | SC |
-| 0x04 | UserAuth | C |
+| 0x04 | UserAuth | C |
| 0x05 | Message | SC |
| 0x06 | ServerAuth | S |
+| 0x07 | UserMode | C |
| 0xFF | Test | R |
### Success
@@ -180,6 +181,7 @@ Payload is always empty for this type.
|------|-----------------------------------------------------------|
| 0x01 | Client auth failed. Invalid username or password. |
| 0x02 | Not found. User or channel cannot access user or channel. |
+| 0x03 | Unauthorized. |
### Handshake
@@ -223,6 +225,24 @@ different auth method will be used.
| timestamp | send_time |
| string | message_content |
+### Usermode
+
+Usermode payload is used for changing user settings related to channels. For
+example: joining, leaving or setting privilages.
+
+| Type | Name |
+|--------|--------------|
+| string | user_address |
+| string | channel_name |
+| uint8 | mode |
+
+#### Modes
+
+| Type | Name |
+|------|------------|
+| 0x00 | none |
+| 0x01 | in_channel |
+
### Test
Test payload is used for encoder and decoders testing. Clients and servers
@@ -321,4 +341,4 @@ This is obviously insecure.
Message can be addressed to a single user or a channel.
* user@example.org
-* #channel@example.org \ No newline at end of file
+* #channel@example.org
diff --git a/docs/rfc.txt b/docs/rfc.txt
index 04d931e..b0e42e3 100644
--- a/docs/rfc.txt
+++ b/docs/rfc.txt
@@ -1,7 +1,7 @@
SOLEC Working Group bt, Ed.
Internet-Draft RCTT.net
-Intended status: Experimental 19 April 2026
-Expires: 21 October 2026
+Intended status: Experimental 3 May 2026
+Expires: 4 November 2026
System of Lightweight Electronic Communication
@@ -32,7 +32,8 @@ Table of Contents
2.4.4. UserAuth
2.4.5. ServerAuth
2.4.6. Message
- 2.4.7. Test
+ 2.4.7. Usermode
+ 2.4.8. Test
2.5. Sequential operations
2.6. Client-Server connection initialisation
2.7. Exchanging messages between servers
@@ -175,6 +176,8 @@ Table of Contents
+------+------------+------------+
| 0x06 | ServerAuth | S |
+------+------------+------------+
+ | 0x07 | UserMode | C |
+ +------+------------+------------+
| 0xFF | Test | R |
+------+------------+------------+
@@ -204,6 +207,8 @@ Table of Contents
| 0x02 | Not found. User or channel cannot access user or |
| | channel. |
+------+------------------------------------------------------------+
+ | 0x03 | Unauthorized. |
+ +------+------------------------------------------------------------+
Table 3
@@ -276,7 +281,27 @@ Table of Contents
Table 8
-2.4.7. Test
+2.4.7. Usermode
+
+ Usermode payload is used for changing user settings related to
+ channels. For example: joining, leaving or setting privilages.
+
+ | Type | Name | | string | user_address | | string | channel_name | |
+ uint8 | mode |
+
+2.4.7.1. Modes
+
+ +======+============+
+ | Type | Name |
+ +======+============+
+ | 0x00 | none |
+ +------+------------+
+ | 0x01 | in_channel |
+ +------+------------+
+
+ Table 9
+
+2.4.8. Test
Test payload is used for encoder and decoders testing. Clients and
servers should ignore this kind of payload.
@@ -301,7 +326,7 @@ Table of Contents
| uint64 | num4 |
+-----------+-------+
- Table 9
+ Table 10
2.5. Sequential operations