MCPcopy Create free account
hub / github.com/AimRT/AimRT / PbRpcHandleRefRegisterClientFunc

Function PbRpcHandleRefRegisterClientFunc

src/runtime/python_runtime/export_rpc.h:158–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158inline bool PbRpcHandleRefRegisterClientFunc(
159 aimrt::rpc::RpcHandleRef& rpc_handle_ref,
160 std::string_view func_name,
161 const std::shared_ptr<const PyPbTypeSupport>& req_type_support,
162 const std::shared_ptr<const PyPbTypeSupport>& rsp_type_support) {
163 static std::vector<std::shared_ptr<const PyPbTypeSupport>> py_ts_vec;
164 py_ts_vec.emplace_back(req_type_support);
165 py_ts_vec.emplace_back(rsp_type_support);
166
167 return rpc_handle_ref.RegisterClientFunc(
168 func_name,
169 nullptr,
170 req_type_support->NativeHandle(),
171 rsp_type_support->NativeHandle());
172}
173
174inline std::tuple<aimrt::rpc::Status, pybind11::bytes> PbRpcHandleRefInvoke(
175 aimrt::rpc::RpcHandleRef& rpc_handle_ref,

Callers

nothing calls this directly

Calls 2

RegisterClientFuncMethod · 0.45
NativeHandleMethod · 0.45

Tested by

no test coverage detected