Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
msgpack_client_wrapper.hpp
Go to the documentation of this file.
1#pragma once
2
4#include "napi.h"
5#include <memory>
6
8
15class MsgpackClientWrapper : public Napi::ObjectWrap<MsgpackClientWrapper> {
16 public:
17 MsgpackClientWrapper(const Napi::CallbackInfo& info);
19
25 Napi::Value call(const Napi::CallbackInfo& info);
26
30 Napi::Value close(const Napi::CallbackInfo& info);
31
32 static Napi::Function get_class(Napi::Env env);
33
34 private:
35 std::unique_ptr<bb::ipc::IpcClient> client_;
36 bool connected_ = false;
37};
38
39} // namespace bb::nodejs::msgpack_client
NAPI wrapper for msgpack calls via shared memory IPC.
Napi::Value close(const Napi::CallbackInfo &info)
Close the shared memory connection.
Napi::Value call(const Napi::CallbackInfo &info)
Send a msgpack buffer and receive response.
void info(Args... args)
Definition log.hpp:75