Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
ipc_server.cpp
Go to the documentation of this file.
4#include <cstddef>
5#include <memory>
6#include <string>
7
8namespace bb::ipc {
9
10std::unique_ptr<IpcServer> IpcServer::create_socket(const std::string& socket_path, int max_clients)
11{
12 return std::make_unique<SocketServer>(socket_path, max_clients);
13}
14
16 size_t request_ring_size,
17 size_t response_ring_size)
18{
19 return std::make_unique<ShmServer>(base_name, request_ring_size, response_ring_size);
20}
21
22} // namespace bb::ipc
static std::unique_ptr< IpcServer > create_socket(const std::string &socket_path, int max_clients)
static std::unique_ptr< IpcServer > create_shm(const std::string &base_name, size_t request_ring_size=static_cast< size_t >(1024 *1024), size_t response_ring_size=static_cast< size_t >(1024 *1024))
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13