1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00
lokinet/llarp/constants/limits.hpp
2019-08-13 11:29:44 -04:00

26 lines
No EOL
651 B
C++

#ifndef LLARP_CONSTANTS_LIMITS_HPP
#define LLARP_CONSTANTS_LIMITS_HPP
#include <cstddef>
namespace llarp
{
namespace limits
{
/// Limits are a struct that contains all hard and soft limit
/// parameters for a given mode of operation
struct LimitParameters
{
/// minimum routers needed to run
std::size_t DefaultMinRouters;
/// hard limit on router sessions (by pubkey)
std::size_t DefaultMaxRouters;
};
/// snode limit parameters
const extern LimitParameters snode;
/// client limit parameters
const extern LimitParameters client;
} // namespace limits
} // namespace llarp
#endif