From f66e28aa88a5f4176934001fa9e4967ddccde4a9 Mon Sep 17 00:00:00 2001 From: bt Date: Wed, 8 Apr 2026 15:31:58 +0200 Subject: [docs] Describe connection types --- docs/rfc.html | 54 ++++++++++++++++++++++++++++++++++++++++++++---------- docs/rfc.md | 13 +++++++++++++ docs/rfc.txt | 29 ++++++++++++++++++++++++----- 3 files changed, 81 insertions(+), 15 deletions(-) (limited to 'docs') diff --git a/docs/rfc.html b/docs/rfc.html index aaa92ce..84b5c0a 100644 --- a/docs/rfc.html +++ b/docs/rfc.html @@ -1220,7 +1220,7 @@ li > p:last-of-type:only-child { bt -Expires 12 October 2026 +Expires 16 October 2026 [Page] @@ -1233,12 +1233,12 @@ li > p:last-of-type:only-child {
SOLEC
Published:
- +
Intended Status:
Experimental
Expires:
-
+
Author:
@@ -1274,7 +1274,7 @@ SOLEC system.

time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."

- This Internet-Draft will expire on 12 October 2026.

+ This Internet-Draft will expire on 16 October 2026.

@@ -1684,8 +1718,8 @@ Text is encoded using UTF-8.

2.4.4. Auth - - +
Table 5
+ @@ -1710,8 +1744,8 @@ Text is encoded using UTF-8.

2.4.5. Message -
Table 6
Type
- +
Table 6
+ @@ -1746,8 +1780,8 @@ Text is encoded using UTF-8.

Test payload is used for encoder and decoders testing. Clients and servers should ignore this kind of payload.

-
Table 7
Type
- +
Table 7
+ diff --git a/docs/rfc.md b/docs/rfc.md index eb8f5c1..8c5818e 100644 --- a/docs/rfc.md +++ b/docs/rfc.md @@ -186,6 +186,19 @@ Payload is always empty for this type. |-------|-----------| | uint8 | ver_major | | uint8 | ver_minor | +| uint8 | conn_type | + +#### Connection types + +`conn_type` specifies type of the connection. User connecting to server +should use `0x01`. If connection is initialize between two servers to exchange +message connection type should be `0x02`. Depending on connection type +different auth method will be used. + +| Type | Connection type | +|------|------------------| +| 0x01 | User -> Server | +| 0x02 | Server -> Server | ### Auth diff --git a/docs/rfc.txt b/docs/rfc.txt index a19de19..f9e8bca 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 10 April 2026 -Expires: 12 October 2026 +Intended status: Experimental 14 April 2026 +Expires: 16 October 2026 System of Lightweight Electronic Communication @@ -208,10 +208,29 @@ Table of Contents | uint8 | ver_major | +-------+-----------+ | uint8 | ver_minor | + +-------+-----------+ + | uint8 | conn_type | +-------+-----------+ Table 4 +2.4.3.1. Connection types + + conn_type specifies type of the connection. User connecting to + server should use 0x01. If connection is initialize between two + servers to exchange message connection type should be 0x02. + Depending on connection type different auth method will be used. + + +======+==================+ + | Type | Connection type | + +======+==================+ + | 0x01 | User -> Server | + +------+------------------+ + | 0x02 | Server -> Server | + +------+------------------+ + + Table 5 + 2.4.4. Auth +========+==========+ @@ -222,7 +241,7 @@ Table of Contents | string | password | +--------+----------+ - Table 5 + Table 6 2.4.5. Message @@ -238,7 +257,7 @@ Table of Contents | string | message_content | +-----------+-----------------+ - Table 6 + Table 7 2.4.6. Test @@ -265,7 +284,7 @@ Table of Contents | uint64 | num4 | +-----------+-------+ - Table 7 + Table 8 2.5. Sequential operations -- cgit v1.2.3
Table 8
Type