forked from Fabien-Chouteau/recordflux-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rsp.rflx
39 lines (26 loc) · 842 Bytes
/
rsp.rflx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package RSP is
type Request_Kind is (Request_Store => 21,
Request_Get => 254)
with Size => 8;
type Payload_Length is range 0 .. 255
with Size => 8;
type Request_Message is
message
Kind : Request_Kind
then Length if Kind = Request_Store;
Length : Payload_Length
then Payload with Size => Length * 8;
Payload : Opaque;
end message;
type Stack_Identifier is range 0 .. 9
with Size => 8;
type Request_Message_With_Id is
message
Stack_Id : Stack_Identifier;
Kind : Request_Kind
then Length if Kind = Request_Store;
Length : Payload_Length
then Payload with Size => Length * 8;
Payload : Opaque;
end message;
end RSP;