Thrift之TProcess类体系原理及源码详细解析
2012-06-03 15:50:17 来源:WEB开发网核心提示:args.read(iprot);iprot->readMessageEnd();uint32_t bytes = iprot->getTransport()->readEnd();if (eventHandler_.get() != NULL) {eventHandler_->postRead
args.read(iprot);
iprot->readMessageEnd();
uint32_t bytes = iprot->getTransport()->readEnd();
if (eventHandler_.get() != NULL) {
eventHandler_->postRead(ctx, "FacebookService.getName", bytes);//读取和读完之间的事件处理
}
FacebookService_getName_result result;
try {
iface_->getName(result.success);//这是重点:调用服务器端的getName函数
result.__isset.success = true;
更多精彩
赞助商链接