C++使用protobuf 作为网络消息协议

上传者: u011052072 | 上传时间: 2019-12-21 21:21:22 | 文件大小: 11.31MB | 文件类型: zip
一个c++使用protobuf作为消息协议的一个小demo,从这个demo里你可以很好地理解进行socket编程中的数据包的设计以及数据的打包和解包。

文件下载

资源详情

( 53 个子文件 11.31MB ) C++使用protobuf 作为网络消息协议
ProtoBuf
.DS_Store 6.00KB
ProtoBuf.xcodeproj
project.xcworkspace
contents.xcworkspacedata 153B
xcuserdata
yangdamin.xcuserdatad
UserInterfaceState.xcuserstate 22.25KB
xcuserdata
yangdamin.xcuserdatad
xcdebugger
Breakpoints_v2.xcbkptlist 91B
xcschemes
xcschememanagement.plist 480B
ProtoBuf.xcscheme 3.13KB
project.pbxproj 11.25KB
.git
logs
HEAD 183B
refs
heads
master 183B
info
exclude 40B
index 1.09KB
COMMIT_EDITMSG 15B
objects
pack
03
369bca55ba8e8d920e6c9f3939ed8b395f6891 5.55MB
16
052499a9d042e7f474ab8dd1a9baec8d13e2e6 139B
info
73
030569230ed95efa2e14fc6d633812a0f4a4c4 90B
870660566ac97d1e6e3697f5577d7391a99d2c 52B
98
9a69742c032d2249a8bcc1623654f51a6060b1 3.44KB
eb
50d57fbdbdf8f82ad56378f464218d79224e64 85B
80
e186a340eb06465319a256aec2b5d3bc59cf2d 2.21KB
b1
a2696e76cb677c98b5aa7516194c1c5c07c1f3 217B
b7
f93c4ae1bfdfc499f3b6f7a56aacdca599c42d 449.50KB
5f
7896afd3708f031465dfd50e59a0b4e7863c32 2.07KB
1e
11d22437c4eb772178b0420293e254ab28d172 1.93KB
7b
554f685cf841442bac29c86aeba787527fe1ad 102B
77
e4ea38ff9f7ab3f66f3b79ecbbbde489bfe7ef 3.61KB
13
fc77fd50ab90e308e28f85ca8cc37bb557da93 134B
89
cfa674ac0cbdf9a3b799dfa48b8dd98a1a5f28 69B
49
429d80fea1c17c62c941fcce5cd986975f6ac1 53B
1a
04bcf9da2b31ced9d38d01f4ded9c9096cbba3 96B
HEAD 23B
config 137B
refs
heads
master 41B
tags
branches
hooks
pre-applypatch.sample 398B
pre-push.sample 1.32KB
commit-msg.sample 896B
pre-commit.sample 1.60KB
applypatch-msg.sample 452B
prepare-commit-msg.sample 1.21KB
update.sample 3.53KB
post-update.sample 189B
pre-rebase.sample 4.83KB
description 73B
gen.sh 49B
person.proto 96B
test.proto 120B
ProtoBuf
.DS_Store 6.00KB
person.pb.cc 12.76KB
libprotoc.a 25.13MB
person.pb.h 8.30KB
test.pb.cc 13.69KB
main.cpp 6.26KB
libprotobuf.9.dylib 1.44MB
test.pb.h 9.04KB
[{"title":"( 53 个子文件 11.31MB ) C++使用protobuf 作为网络消息协议","children":[{"title":"ProtoBuf","children":[{"title":".DS_Store <span style='color:#111;'> 6.00KB </span>","children":null,"spread":false},{"title":"ProtoBuf.xcodeproj","children":[{"title":"project.xcworkspace","children":[{"title":"contents.xcworkspacedata <span style='color:#111;'> 153B </span>","children":null,"spread":false},{"title":"xcuserdata","children":[{"title":"yangdamin.xcuserdatad","children":[{"title":"UserInterfaceState.xcuserstate <span style='color:#111;'> 22.25KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"xcuserdata","children":[{"title":"yangdamin.xcuserdatad","children":[{"title":"xcdebugger","children":[{"title":"Breakpoints_v2.xcbkptlist <span style='color:#111;'> 91B </span>","children":null,"spread":false}],"spread":true},{"title":"xcschemes","children":[{"title":"xcschememanagement.plist <span style='color:#111;'> 480B </span>","children":null,"spread":false},{"title":"ProtoBuf.xcscheme <span style='color:#111;'> 3.13KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"project.pbxproj <span style='color:#111;'> 11.25KB </span>","children":null,"spread":false}],"spread":true},{"title":".git","children":[{"title":"logs","children":[{"title":"HEAD <span style='color:#111;'> 183B </span>","children":null,"spread":false},{"title":"refs","children":[{"title":"heads","children":[{"title":"master <span style='color:#111;'> 183B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"info","children":[{"title":"exclude <span style='color:#111;'> 40B </span>","children":null,"spread":false}],"spread":true},{"title":"index <span style='color:#111;'> 1.09KB </span>","children":null,"spread":false},{"title":"COMMIT_EDITMSG <span style='color:#111;'> 15B </span>","children":null,"spread":false},{"title":"objects","children":[{"title":"pack","children":null,"spread":false},{"title":"03","children":[{"title":"369bca55ba8e8d920e6c9f3939ed8b395f6891 <span style='color:#111;'> 5.55MB </span>","children":null,"spread":false}],"spread":true},{"title":"16","children":[{"title":"052499a9d042e7f474ab8dd1a9baec8d13e2e6 <span style='color:#111;'> 139B </span>","children":null,"spread":false}],"spread":true},{"title":"info","children":null,"spread":false},{"title":"73","children":[{"title":"030569230ed95efa2e14fc6d633812a0f4a4c4 <span style='color:#111;'> 90B </span>","children":null,"spread":false},{"title":"870660566ac97d1e6e3697f5577d7391a99d2c <span style='color:#111;'> 52B </span>","children":null,"spread":false}],"spread":true},{"title":"98","children":[{"title":"9a69742c032d2249a8bcc1623654f51a6060b1 <span style='color:#111;'> 3.44KB </span>","children":null,"spread":false}],"spread":false},{"title":"eb","children":[{"title":"50d57fbdbdf8f82ad56378f464218d79224e64 <span style='color:#111;'> 85B </span>","children":null,"spread":false}],"spread":false},{"title":"80","children":[{"title":"e186a340eb06465319a256aec2b5d3bc59cf2d <span style='color:#111;'> 2.21KB </span>","children":null,"spread":false}],"spread":false},{"title":"b1","children":[{"title":"a2696e76cb677c98b5aa7516194c1c5c07c1f3 <span style='color:#111;'> 217B </span>","children":null,"spread":false}],"spread":false},{"title":"b7","children":[{"title":"f93c4ae1bfdfc499f3b6f7a56aacdca599c42d <span style='color:#111;'> 449.50KB </span>","children":null,"spread":false}],"spread":false},{"title":"5f","children":[{"title":"7896afd3708f031465dfd50e59a0b4e7863c32 <span style='color:#111;'> 2.07KB </span>","children":null,"spread":false}],"spread":false},{"title":"1e","children":[{"title":"11d22437c4eb772178b0420293e254ab28d172 <span style='color:#111;'> 1.93KB </span>","children":null,"spread":false}],"spread":false},{"title":"7b","children":[{"title":"554f685cf841442bac29c86aeba787527fe1ad <span style='color:#111;'> 102B </span>","children":null,"spread":false}],"spread":false},{"title":"77","children":[{"title":"e4ea38ff9f7ab3f66f3b79ecbbbde489bfe7ef <span style='color:#111;'> 3.61KB </span>","children":null,"spread":false}],"spread":false},{"title":"13","children":[{"title":"fc77fd50ab90e308e28f85ca8cc37bb557da93 <span style='color:#111;'> 134B </span>","children":null,"spread":false}],"spread":false},{"title":"89","children":[{"title":"cfa674ac0cbdf9a3b799dfa48b8dd98a1a5f28 <span style='color:#111;'> 69B </span>","children":null,"spread":false}],"spread":false},{"title":"49","children":[{"title":"429d80fea1c17c62c941fcce5cd986975f6ac1 <span style='color:#111;'> 53B </span>","children":null,"spread":false}],"spread":false},{"title":"1a","children":[{"title":"04bcf9da2b31ced9d38d01f4ded9c9096cbba3 <span style='color:#111;'> 96B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"HEAD <span style='color:#111;'> 23B </span>","children":null,"spread":false},{"title":"config <span style='color:#111;'> 137B </span>","children":null,"spread":false},{"title":"refs","children":[{"title":"heads","children":[{"title":"master <span style='color:#111;'> 41B </span>","children":null,"spread":false}],"spread":true},{"title":"tags","children":null,"spread":false}],"spread":true},{"title":"branches","children":null,"spread":false},{"title":"hooks","children":[{"title":"pre-applypatch.sample <span style='color:#111;'> 398B </span>","children":null,"spread":false},{"title":"pre-push.sample <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false},{"title":"commit-msg.sample <span style='color:#111;'> 896B </span>","children":null,"spread":false},{"title":"pre-commit.sample <span style='color:#111;'> 1.60KB </span>","children":null,"spread":false},{"title":"applypatch-msg.sample <span style='color:#111;'> 452B </span>","children":null,"spread":false},{"title":"prepare-commit-msg.sample <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false},{"title":"update.sample <span style='color:#111;'> 3.53KB </span>","children":null,"spread":false},{"title":"post-update.sample <span style='color:#111;'> 189B </span>","children":null,"spread":false},{"title":"pre-rebase.sample <span style='color:#111;'> 4.83KB </span>","children":null,"spread":false}],"spread":true},{"title":"description <span style='color:#111;'> 73B </span>","children":null,"spread":false}],"spread":false},{"title":"gen.sh <span style='color:#111;'> 49B </span>","children":null,"spread":false},{"title":"person.proto <span style='color:#111;'> 96B </span>","children":null,"spread":false},{"title":"test.proto <span style='color:#111;'> 120B </span>","children":null,"spread":false},{"title":"ProtoBuf","children":[{"title":".DS_Store <span style='color:#111;'> 6.00KB </span>","children":null,"spread":false},{"title":"person.pb.cc <span style='color:#111;'> 12.76KB </span>","children":null,"spread":false},{"title":"libprotoc.a <span style='color:#111;'> 25.13MB </span>","children":null,"spread":false},{"title":"person.pb.h <span style='color:#111;'> 8.30KB </span>","children":null,"spread":false},{"title":"test.pb.cc <span style='color:#111;'> 13.69KB </span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'> 6.26KB </span>","children":null,"spread":false},{"title":"libprotobuf.9.dylib <span style='color:#111;'> 1.44MB </span>","children":null,"spread":false},{"title":"test.pb.h <span style='color:#111;'> 9.04KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • matthew_nill :
    可以参考一下
    2020-06-06
  • yangbin762003 :
    可以参考一下
    2019-07-15
  • herogg :
    不错,有点贵
    2019-03-04
  • SIJIMO :
    不错,感谢分享
    2019-02-14
  • xinman100 :
    可以用ZSBD
    2018-10-23

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明
服务器状态检查中...