摘要:
1, people.protoRuby代码packagedemo;messagePeople{requiredstringname=1;requiredint32id=2;requiredstringemail=3;}2, 生成stub类Ruby代码protoc--cpp_out=.people.protorprotocpeople.proto3, C++服务器端server.ccC++代码#include<stdio.h>#include<stdlib.h>#include<strings.h>#include<unistd.h>#includ 阅读全文