diff options
| author | Dennis Brentjes <d.brentjes@gmail.com> | 2016-11-28 13:17:00 +0100 |
|---|---|---|
| committer | Dennis Brentjes <d.brentjes@gmail.com> | 2016-11-28 13:17:00 +0100 |
| commit | b8d2fe28870d1f54aad1fd9fce04e57caa85ba0b (patch) | |
| tree | d741e90e0cef2ae2d54facdc3b0ee309908944a6 | |
| parent | f8a927984a56e75718bfc273b61693442c9ce649 (diff) | |
| download | cmix-b8d2fe28870d1f54aad1fd9fce04e57caa85ba0b.tar.gz cmix-b8d2fe28870d1f54aad1fd9fce04e57caa85ba0b.tar.bz2 cmix-b8d2fe28870d1f54aad1fd9fce04e57caa85ba0b.zip | |
Upgraded to protobuf3 language.
The downside no required fields anymore, but now that the protocol
works, should not be a problem.
The upside, more language support, and an option to increase memory
locality by the use of arena allocation in c++, enabled the option for
now need to rewrite some code to take advantage of.
| -rw-r--r-- | libcmix-protobuf/cmix.proto | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/libcmix-protobuf/cmix.proto b/libcmix-protobuf/cmix.proto index d0e3da2..5cfdd92 100644 --- a/libcmix-protobuf/cmix.proto +++ b/libcmix-protobuf/cmix.proto @@ -1,11 +1,15 @@ +syntax = "proto3"; + +option cc_enable_arenas = true; + package cmix_proto; message Initialization { - required bytes public_share = 1; + bytes public_share = 1; } message SecretKey { - required bytes secret_key = 1; + bytes secret_key = 1; } message ImANode { @@ -13,7 +17,7 @@ message ImANode { } message ImAClient { - required bytes id = 1; + bytes id = 1; } message Bye { @@ -21,8 +25,8 @@ message Bye { } message KeyExchange { - required bytes public_key = 1; - required bytes value = 2; + bytes public_key = 1; + bytes value = 2; } message NodeReady { @@ -30,7 +34,7 @@ message NodeReady { } message UserMessage { - required bytes M = 1; + bytes M = 1; } message PrePre { @@ -58,7 +62,7 @@ message RealMix { } message Payload { - required bytes payload = 1; + bytes payload = 1; } message CMixMessage { |
