ADD: added protobuf lib
This commit is contained in:
12
src/main.cpp
Normal file
12
src/main.cpp
Normal file
@@ -0,0 +1,12 @@
|
||||
#include <iostream>
|
||||
|
||||
|
||||
#include "protos/join.pb.h"
|
||||
|
||||
|
||||
int main()
|
||||
{
|
||||
|
||||
|
||||
|
||||
}
|
||||
16
src/protos/join.proto
Normal file
16
src/protos/join.proto
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
// [START declaration]
|
||||
syntax = "proto3";
|
||||
package messages.join;
|
||||
|
||||
import "google/protobuf/timestamp.proto";
|
||||
// [END declaration]
|
||||
|
||||
|
||||
// [START messages]
|
||||
message Join {
|
||||
int32 id = 1;
|
||||
int32 port = 2;
|
||||
string address = 3;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user