Thrift之TProcess类体系原理及源码详细解析
2012-06-03 15:50:17 来源:WEB开发网核心提示:return;}if (eventHandler_.get() != NULL) {eventHandler_->preWrite(ctx, "FacebookService.getName");//写入之前事件处理}//写入调用返回值(T_REPLY)消息到调用客户端oprot->wr
return;
}
if (eventHandler_.get() != NULL) {
eventHandler_->preWrite(ctx, "FacebookService.getName");//写入之前事件处理
}
//写入调用返回值(T_REPLY)消息到调用客户端
oprot->writeMessageBegin("getName", ::apache::thrift::protocol::T_REPLY, seqid);
result.write(oprot);
oprot->writeMessageEnd();
bytes = oprot->getTransport()->writeEnd();
oprot->getTransport()->flush();
更多精彩
赞助商链接