Files
ladybird/Libraries/LibIPC/Limits.h
Andreas Kling cb3bc3c493 LibIPC: Move IPC message limits to a shared Limits.h header
This consolidates the message size and FD count limits into a single
header file that can be used by both the encoding and decoding sides
of the IPC layer.
2026-01-22 17:38:15 +01:00

20 lines
411 B
C++

/*
* Copyright (c) 2026, Andreas Kling <andreas@ladybird.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/Types.h>
namespace IPC {
// Maximum size of an IPC message payload (64 MiB should be more than enough)
static constexpr size_t MAX_MESSAGE_PAYLOAD_SIZE = 64 * MiB;
// Maximum number of file descriptors per message
static constexpr size_t MAX_MESSAGE_FD_COUNT = 128;
}