41 std::cout <<
"Couldn't create it." << std::endl;
44 std::cout <<
"Using backend: " << int(buf->getBackend()) << std::endl;
46 std::cout <<
"Capacity: " << buf->getEntries() <<
" entries.\n";
47 std::cout <<
"Entry size: " << buf->getEntrySize() <<
" bytes per entry."
53 std::getline(std::cin, data);
55 buf->put(reinterpret_cast<const unsigned char *>(data.data()),
57 std::cout <<
"Sequence number " << seq << std::endl;
static IPCRingBufferPtr create(Options const &opts)
Named constructor, for use by server processes: creates a shared memory ring buffer given the options...