Q1ngbo commented on code in PR #3196:
URL: https://github.com/apache/brpc/pull/3196#discussion_r2694170603


##########
example/benchmark_fb/test.fbs:
##########
@@ -0,0 +1,24 @@
+namespace test;
+
+table BenchmarkRequest {
+  opcode:int;
+  echo_attachment:int;
+  attachment_size:long;
+  request_id:long;
+  
+  reserved:long;
+  message:string;
+}
+
+table BenchmarkResponse {
+  opcode:int;
+  echo_attachment:int;
+  attachment_size:long;
+  request_id:long;
+  reserved:long;
+  message:string;
+}
+
+rpc_service BenchmarkService {

Review Comment:
   > flatc 应该是不支持 rpc_service 的,请问这里是怎么处理的?
   
   
类似于为grpc实现的--grpc参数,可以给flatc增加了--brpc参数,来将其编译为brpc可用的service。如example/benchmark_fb/test.brpc.fb.h中的class
 BenchmarkService。但我尚未向flatbuffers提交pr,因为还可能需要根据brpc中实现进行相应修改。



-- 
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