chenBright commented on issue #2671:
URL: https://github.com/apache/brpc/issues/2671#issuecomment-2219393571
```c++
class ProtobufMessageManager {
public:
virtual google::protobuf::Message* GetMessage(const
google::protobuf::Message* message_prototype) = 0;
virtual void ReturnMessage(google::protobuf::Message* message) = 0;
};
```
User implements `ProtobufMessageManager` and sets the derived class instance
to `ServerOptions::pb_message_manager`。Then, the server will get request and
response from the derived class instance in `ProcessRpcRequest`, return them in
`SendRpcResponse`。
@oathdruid Any suggestion?
--
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]