Goby v2
mosh_packet.proto
1 
2 import "goby/common/protobuf/option_extensions.proto";
3 import "dccl/option_extensions.proto";
4 
5 package goby.acomms.protobuf;
6 
7 message MoshPacket
8 {
9  option (dccl.msg).id = 0x0200;
10  option (dccl.msg).max_bytes = 64;
11 
12  required int32 src = 1 [
13  (dccl.field).min = 1,
14  (dccl.field).max = 32,
15  (dccl.field).in_head = true
16  ];
17  required int32 dest = 2 [
18  (dccl.field).min = 1,
19  (dccl.field).max = 32,
20  (dccl.field).in_head = true
21  ];
22 
23  required int32 frag_num = 3 [
24  (dccl.field).min = 0,
25  (dccl.field).max = 21,
26  (dccl.field).in_head = true
27  ];
28 
29  required int32 frag_len = 4 [
30  (dccl.field).min = 1,
31  (dccl.field).max = 59,
32  (dccl.field).in_head = true
33  ];
34 
35  required bool is_last_frag = 5 [(dccl.field).in_head = true];
36 
37  required bytes fragment = 6 [(dccl.field).max_length = 59];
38 }