/ components / protocomm / proto / sec0.proto
sec0.proto
 1  syntax = "proto3";
 2  
 3  import "constants.proto";
 4  
 5  /* Data structure of Session command/request packet */
 6  message S0SessionCmd {
 7  
 8  }
 9  
10  /* Data structure of Session response packet */
11  message S0SessionResp {
12      Status status = 1;
13  }
14  
15  /* A message must be of type Cmd or Resp */
16  enum Sec0MsgType {
17      S0_Session_Command = 0;
18      S0_Session_Response = 1;
19  }
20  
21  /* Payload structure of session data */
22  message Sec0Payload {
23      Sec0MsgType msg = 1;        /*!< Type of message */
24      oneof payload {
25          S0SessionCmd sc = 20;   /*!< Payload data interpreted as Cmd */
26          S0SessionResp sr = 21;  /*!< Payload data interpreted as Resp */
27      }
28  }