impove ipc

This commit is contained in:
Сергей Маринкевич
2025-12-02 17:08:39 +07:00
parent 1f16ef6b37
commit 99ea8d1646
8 changed files with 75 additions and 63 deletions
+1 -1
View File
@@ -9,7 +9,7 @@
{% endfor %}
}
std::string {{ cls.name }}Skeleton::dispatch(const std::string& req) {
IpcMessage {{ cls.name }}Skeleton::dispatch(const IpcMessage& req) {
return invoker.dispatch(req);
}
+1 -3
View File
@@ -3,13 +3,11 @@
#include "{{ cls.name }}.h"
#include "rpc/RpcInvoker.h"
#include <string>
class {{ cls.name }}Skeleton {
public:
explicit {{ cls.name }}Skeleton({{ cls.name }}& obj);
std::string dispatch(const std::string& req);
IpcMessage dispatch(const IpcMessage& req);
private:
RpcInvoker invoker;