![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
thrift学习
坚持到底cw
奋斗青年
展开
-
thrift初步认识
1. thrift是一个软件框架,用来进行可扩展且跨语言的服务的开发。 不同开发语言开发的服务可以通过该框架实现通信。 2. thrift允许定义一个简单的定义文件中的数据类型和服务接口,以作为输入文件,编译器生成代码用来方便地生成RPC客户端和服务器通信的无缝跨编程语言。 3. Thrift通过接口定义语言 (interface definition language,IDL原创 2014-05-04 10:26:15 · 572 阅读 · 0 评论 -
thrift_demo_WhatTime
要求 :客户端(c++实现):问现在几点钟 服务器(c++实现):现在是… 1. 编写WhatTime.thrift namespace cpp roctime service TimeService { i32 TellMeTime() } 编译:thrift–gen cpp WhatTime.thrift 在gen-cpp目录下会有如下文件: TimeService原创 2014-04-20 20:25:42 · 719 阅读 · 0 评论 -
thrift_demo
student.thrift struct Student { 1:i32 id, 2:string name, 3:i16 age, } service PutStudentInfoService { void put(1:Student s); }原创 2014-04-27 12:23:38 · 575 阅读 · 0 评论