隔壁老王

Jack's Blog

hellostreamingworld 示例实现

github 的 markdown 好麻烦。。。

文件夹examples/protos 内有个 hellostreamingworld.proto,但是 examples/cpp 内没有对应的示例代码。我参考 route_guide 和 helloworld 两个示例,写出了这份程序。 生成cc 文件 protoc --cpp_out=. hellostreamingworld.proto protoc -...

Windows下gRPC安装小记

在坑里 再次打滚的经历。。。

搞定了 proto3后,开始搞 gRPC。又是一个巨坑。 从 github clone 项目之后,在 vsprojects 中打开 grpc.sln,编译 gpr, gprc, gprc_unsecure, gprc++_unsecure 几个项目,生成 lib 库。因为用不了 boringsll,只能用未加密的版本。期间小坑无数,每个项目配置都得是 Mt 或 Mtd。 再打开 grpc_...

Windows下protobuf3安装小记

在坑里打滚的经历。。。

一开始搞的是2,可惜我要用的gRPC只能用proto3. proto2: 在vsprojects文件夹内打开sln即可。 使用visual studio 2015,需在config.h添加 #define _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS #define _SCL_SECURE_NO_WARNINGS proto3: proto3还没...

什么是proof(证明)?百分之一纯酒精的一半!

迁移自 bandwagon vps

In the USA, proof is a measure of the amount of absolute alcohol in distilled spirits, and is calculated as the number of parts of alcohol in 200 parts of beverage at 60 degrees Fahrenheit. 在美...

ssh 端口转发

迁移自 bandwagon vps

公司项目,服务器-客户端模式,当服务器与客户端跨运营商运行时(服务器使用移动专线,客户端使用电信宽带),容易出现频繁断线、断线后不能重连的问题。而我所在的分公司环境为,一个电信8M宽带,一个电信2M独立IP,一般情况下很难重现rst/retransmition等现象。 我想到自己有个VPS,是否可以利用一下呢?vps上有个shadowsocks服务器程序,平时用来翻墙,他就是用来转发的嘛,...