From eec10d41af62fb9a93cd5fd79dcf94616701cc2a Mon Sep 17 00:00:00 2001 From: bt Date: Sun, 19 Apr 2026 21:32:53 +0200 Subject: [common] Basic group channels support --- docs/rfc.md | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) (limited to 'docs/rfc.md') 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 -- cgit v1.2.3