/(ㄒoㄒ)/~~ 官网被墙 1. github > Search > protobuf or protocol buffers 2.https://github.com/google/protobuf 3. releases 4. protoc-3.0.0-alpha-2-win32.zip re ...
分类:
其他好文 时间:
2016-08-06 08:20:35
阅读次数:
726
1.https://github.com/google/protobuf/releases/tag/v3.0.0 下载需要的版本,如果执行autogen.sh的过程中出现autoreconf not found的错误,说明没有安装automake,在ubuntu执行sudo apt-get inst ...
分类:
其他好文 时间:
2016-08-04 16:20:58
阅读次数:
261
Google终于发布了protobuf3.0的release版了,升级项就不说了,之前的版本内部都有一个vsprojects目录,可以通过vs工程直接打开,新版本需要自己通过cmake去创建。protobuf下载地址:https://github.com/google/protobuf/releases/tag/v3.0.0;cmake下载地址:https://cmake.org..
分类:
其他好文 时间:
2016-08-03 15:35:12
阅读次数:
162
下载地址:https://github.com/google/protobuf 1.编译通过cmake生成sln文件来编译用cmd命令 cd 到3.0.0-beta-4\cmake 如果要编译64位的话 注意中间不能有回车之类的,该命令行生成的是dll版本的(静态库的话要注意lib的运行库),其它版 ...
分类:
其他好文 时间:
2016-08-01 20:51:53
阅读次数:
258
网络游戏客户端通信模块的简单实现如下,未经充分测试,功能也不完善,纯实学习,积累之用。 1. 首先是发送的包的封装,与服务端约定好的协议,代码如下: 1 using Cmd; 2 using ProtoBuf.Meta; 3 using System; 4 using System.Collecti ...
分类:
其他好文 时间:
2016-08-01 17:44:32
阅读次数:
260
所需工具 : cmake for windows 和 git for windows 原理:protobuf 是google的一个开源项目,其源代码在github上可以下载到,并且源码都采用cmake来构建,所以我们可以把源码下载到本地,然后了利用cmake构建本地工程,然后编译. 步骤一:下载源码 ...
分类:
Windows程序 时间:
2016-07-23 11:57:29
阅读次数:
1030
rpc简介:http://www.ibm.com/developerworks/cn/aix/library/au-rpc_programming/index.html 常见的rpc框架有protobuf、thrift。 不过abelkhan没有采用这些开源的rpc框架,而是选择自己开发了一套新的r ...
分类:
其他好文 时间:
2016-07-21 21:45:53
阅读次数:
137
对golang protobuf 的扩展字段赋值时候一直提示proto: bad extension value type clkUrl:="z.cn" proto.SetExtension(seatbid, rtb.E_Clkurl, clkUrl) 查看源码后发现,对扩展字段赋值的时候会对第二个 ...
分类:
其他好文 时间:
2016-07-19 20:28:47
阅读次数:
164
ps: Protocol Buffers简称PB PB 安装配置 下载 PB: 在 PB 官网,下载最新版(或者其他版本)PB,这里为了与 Java 项目中的 PB Maven 依赖版本一致,使用 PB 2.5.0 版本。 安装 PB: 解压:tar zxvf protobuf-2.5.0.tar. ...
分类:
编程语言 时间:
2016-07-12 17:11:28
阅读次数:
265
在最近参与开发的adobe air项目中,前后端的通信协议从XML、JSON再到protobuf,最后选择protobuf原因,主要是前后端维护protobuf协议就行了,同时还可以利用IDE做一些编译检查。目前我能找到的protobuf as3开源库,都存在一些问题:不支持嵌套类,生成代码无法编译 ...
分类:
其他好文 时间:
2016-07-12 13:53:35
阅读次数:
940