首页 > 其他 > 详细

RPC框架 - thrift 服务端

时间:2017-03-17 17:42:15      阅读:269      评论:0      收藏:0      [点我收藏+]

-------服务端程序 ------

下载
    下载 thrift 源代码包
    下载 thrift 的bin包

准备描述文件(使用源代码包的示例文件)
    \thrift-0.10.0\tutorial\shared.thrift
    \thrift-0.10.0\tutorial\tutorial.thrift


根据描述文件生成代码
    thrift-0.10.0.exe -r -o lib_server --gen php:server idl-dir/tutorial.thrift

从thrift源代码包中拷贝 php的库
    \thrift-0.10.0\lib\php\lib
    
编写服务端代码(使用源代码包的示例文件、并修改)
    \thrift-0.10.0\tutorial\php\PhpServer.php
   

技术分享

RPC框架 - thrift 服务端

原文:http://www.cnblogs.com/xiaoyaogege/p/6567386.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!