mirror of https://github.com/oxen-io/lokinet
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
652 B
C++
27 lines
652 B
C++
5 years ago
|
#ifndef LLARP_CONSTANTS_LIMITS_HPP
|
||
|
#define LLARP_CONSTANTS_LIMITS_HPP
|
||
|
#include <cstdint>
|
||
|
|
||
|
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
|