Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
ipc_client.cpp
Go to the documentation of this file.
1
#include "
barretenberg/ipc/ipc_client.hpp
"
2
#include "
barretenberg/ipc/mpsc_shm_client.hpp
"
3
#include "
barretenberg/ipc/shm_client.hpp
"
4
#include "
barretenberg/ipc/socket_client.hpp
"
5
#include <cstddef>
6
#include <memory>
7
#include <string>
8
9
namespace
bb::ipc
{
10
11
std::unique_ptr<IpcClient>
IpcClient::create_socket
(
const
std::string& socket_path)
12
{
13
return
std::make_unique<SocketClient>
(socket_path);
14
}
15
16
std::unique_ptr<IpcClient>
IpcClient::create_shm
(
const
std::string& base_name)
17
{
18
return
std::make_unique<ShmClient>
(base_name);
19
}
20
21
std::unique_ptr<IpcClient>
IpcClient::create_mpsc_shm
(
const
std::string& base_name,
size_t
client_id)
22
{
23
return
std::make_unique<MpscShmClient>
(base_name, client_id);
24
}
25
26
}
// namespace bb::ipc
bb::ipc::IpcClient::create_mpsc_shm
static std::unique_ptr< IpcClient > create_mpsc_shm(const std::string &base_name, size_t client_id)
Definition
ipc_client.cpp:21
bb::ipc::IpcClient::create_socket
static std::unique_ptr< IpcClient > create_socket(const std::string &socket_path)
Definition
ipc_client.cpp:11
bb::ipc::IpcClient::create_shm
static std::unique_ptr< IpcClient > create_shm(const std::string &base_name)
Definition
ipc_client.cpp:16
ipc_client.hpp
mpsc_shm_client.hpp
bb::ipc
Definition
ipc_client.cpp:9
std::get
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition
tuple.hpp:13
shm_client.hpp
socket_client.hpp
src
barretenberg
ipc
ipc_client.cpp
Generated by
1.9.8