Add transaction IDs to messages and handle on the server

This commit is contained in:
2025-02-28 19:14:04 +00:00
parent c683f72e10
commit 959be64cc1
2 changed files with 23 additions and 5 deletions

View File

@@ -12,12 +12,17 @@ Session ::= SEQUENCE {
minutes INTEGER
}
Request ::= CHOICE {
RequestBody ::= CHOICE {
ping [0] NULL,
listPrioritizedActivities [1] NULL,
logSession [2] Session
}
Request ::= SEQUENCE {
transactionId INTEGER,
body RequestBody
}
PrioritizedActivity ::= SEQUENCE {
subjectId INTEGER,
subjectName UTF8String,
@@ -31,10 +36,15 @@ Error ::= ENUMERATED {
serverError(2)
}
Response ::= CHOICE {
ResponseBody ::= CHOICE {
error [0] Error,
ack [1] NULL,
prioritizedActivities [2] SEQUENCE OF PrioritizedActivity
}
Response ::= SEQUENCE {
transactionId INTEGER,
body ResponseBody
}
END