wudianer commented on issue #2896:
URL: https://github.com/apache/brpc/issues/2896#issuecomment-2670270223

   > > > 有可以运行的例子吗
   > > 
   > > 
   > > 您的意思是说 要一个源码示例嘛
   > 
   > 对的
   
   代码没有上传到公共仓库 但是与brpc核心的流程就是上面的例子了  还有就是 ctx是一个 sdk的实例 
AsyncCallWithAttachment方法内部
   
   ```
   >     pb::Closure* done = brpc::NewCallback(&ReadObjectWithAttachmentCb, 
serv_addr,, request, response, cntl, closure, buf);
   >     stub.Read(serv_addr, request.get(), response.get(), cntl.get(), done, 
&options);
   ```通过这种实例与server端交互 看着主流程也没啥问题 不通过dummy server监控 也能跑出不错的业务带宽


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to