|
Barretenberg
The ZK-SNARK library at the core of Aztec
|
NAPI wrapper for msgpack calls via shared memory IPC. More...
#include <msgpack_client_wrapper.hpp>
Public Member Functions | |
| MsgpackClientWrapper (const Napi::CallbackInfo &info) | |
| ~MsgpackClientWrapper () | |
| Napi::Value | call (const Napi::CallbackInfo &info) |
| Send a msgpack buffer and receive response. | |
| Napi::Value | close (const Napi::CallbackInfo &info) |
| Close the shared memory connection. | |
Static Public Member Functions | |
| static Napi::Function | get_class (Napi::Env env) |
Private Attributes | |
| std::unique_ptr< bb::ipc::IpcClient > | client_ |
| bool | connected_ = false |
NAPI wrapper for msgpack calls via shared memory IPC.
Provides a simple synchronous interface to send msgpack buffers to the bb binary via shared memory and receive responses.
Definition at line 15 of file msgpack_client_wrapper.hpp.
| MsgpackClientWrapper::MsgpackClientWrapper | ( | const Napi::CallbackInfo & | info | ) |
Definition at line 9 of file msgpack_client_wrapper.cpp.
| MsgpackClientWrapper::~MsgpackClientWrapper | ( | ) |
Definition at line 31 of file msgpack_client_wrapper.cpp.
| Napi::Value MsgpackClientWrapper::call | ( | const Napi::CallbackInfo & | info | ) |
Send a msgpack buffer and receive response.
| info[0] | - Buffer containing msgpack data |
Definition at line 38 of file msgpack_client_wrapper.cpp.
| Napi::Value MsgpackClientWrapper::close | ( | const Napi::CallbackInfo & | info | ) |
Close the shared memory connection.
Definition at line 79 of file msgpack_client_wrapper.cpp.
|
static |
Definition at line 91 of file msgpack_client_wrapper.cpp.
|
private |
Definition at line 35 of file msgpack_client_wrapper.hpp.
|
private |
Definition at line 36 of file msgpack_client_wrapper.hpp.