unilink  0.4.3
A simple C++ library for unified async communication
unilink::base::constants Namespace Reference

Variables

constexpr size_t DEFAULT_BACKPRESSURE_THRESHOLD = 1 << 20
 
constexpr size_t MIN_BACKPRESSURE_THRESHOLD = 1024
 
constexpr size_t MAX_BACKPRESSURE_THRESHOLD = 100 << 20
 
constexpr size_t DEFAULT_READ_BUFFER_SIZE = 4096
 
constexpr unsigned DEFAULT_RETRY_INTERVAL_MS = 3000
 
constexpr unsigned MIN_RETRY_INTERVAL_MS = 100
 
constexpr unsigned MAX_RETRY_INTERVAL_MS = 300000
 
constexpr unsigned DEFAULT_CONNECTION_TIMEOUT_MS = 5000
 
constexpr unsigned MIN_CONNECTION_TIMEOUT_MS = 100
 
constexpr unsigned MAX_CONNECTION_TIMEOUT_MS = 300000
 
constexpr int DEFAULT_MAX_RETRIES = -1
 
constexpr int MAX_RETRIES_LIMIT = 1000
 
constexpr size_t DEFAULT_MEMORY_POOL_SIZE = 100
 
constexpr size_t MIN_MEMORY_POOL_SIZE = 10
 
constexpr size_t MAX_MEMORY_POOL_SIZE = 1000
 
constexpr size_t MAX_BUFFER_SIZE = 64 * 1024 * 1024
 
constexpr size_t MIN_BUFFER_SIZE = 1
 
constexpr size_t DEFAULT_BUFFER_SIZE = 4096
 
constexpr size_t LARGE_BUFFER_THRESHOLD = 65536
 
constexpr unsigned DEFAULT_CLEANUP_INTERVAL_MS = 100
 
constexpr unsigned MIN_CLEANUP_INTERVAL_MS = 10
 
constexpr unsigned MAX_CLEANUP_INTERVAL_MS = 1000
 
constexpr unsigned DEFAULT_HEALTH_CHECK_INTERVAL_MS = 1000
 
constexpr size_t DEFAULT_MAX_CONNECTIONS = 1000
 
constexpr size_t MAX_MAX_CONNECTIONS = 10000
 
constexpr size_t DEFAULT_SESSION_TIMEOUT_MS = 30000
 
constexpr size_t MIN_SESSION_TIMEOUT_MS = 1000
 
constexpr size_t MAX_SESSION_TIMEOUT_MS = 300000
 
constexpr size_t DEFAULT_MAX_RECENT_ERRORS = 1000
 
constexpr size_t MAX_MAX_RECENT_ERRORS = 10000
 
constexpr size_t DEFAULT_ERROR_CLEANUP_INTERVAL_MS = 60000
 
constexpr size_t MAX_HOSTNAME_LENGTH = 253
 
constexpr size_t MAX_DEVICE_PATH_LENGTH = 256
 
constexpr uint32_t MIN_BAUD_RATE = 50
 
constexpr uint32_t MAX_BAUD_RATE = 4000000
 
constexpr uint8_t MIN_DATA_BITS = 5
 
constexpr uint8_t MAX_DATA_BITS = 8
 
constexpr uint8_t MIN_STOP_BITS = 1
 
constexpr uint8_t MAX_STOP_BITS = 2
 
constexpr size_t DEFAULT_THREAD_POOL_SIZE = 4
 
constexpr size_t MIN_THREAD_POOL_SIZE = 1
 
constexpr size_t MAX_THREAD_POOL_SIZE = 64
 
constexpr unsigned DEFAULT_THREAD_STACK_SIZE = 1024 * 1024
 

Variable Documentation

◆ DEFAULT_BACKPRESSURE_THRESHOLD

constexpr size_t unilink::base::constants::DEFAULT_BACKPRESSURE_THRESHOLD = 1 << 20
constexpr

Definition at line 29 of file constants.hpp.

◆ DEFAULT_BUFFER_SIZE

constexpr size_t unilink::base::constants::DEFAULT_BUFFER_SIZE = 4096
constexpr

Definition at line 54 of file constants.hpp.

◆ DEFAULT_CLEANUP_INTERVAL_MS

constexpr unsigned unilink::base::constants::DEFAULT_CLEANUP_INTERVAL_MS = 100
constexpr

Definition at line 58 of file constants.hpp.

◆ DEFAULT_CONNECTION_TIMEOUT_MS

constexpr unsigned unilink::base::constants::DEFAULT_CONNECTION_TIMEOUT_MS = 5000
constexpr

Definition at line 38 of file constants.hpp.

◆ DEFAULT_ERROR_CLEANUP_INTERVAL_MS

constexpr size_t unilink::base::constants::DEFAULT_ERROR_CLEANUP_INTERVAL_MS = 60000
constexpr

Definition at line 73 of file constants.hpp.

◆ DEFAULT_HEALTH_CHECK_INTERVAL_MS

constexpr unsigned unilink::base::constants::DEFAULT_HEALTH_CHECK_INTERVAL_MS = 1000
constexpr

Definition at line 61 of file constants.hpp.

◆ DEFAULT_MAX_CONNECTIONS

constexpr size_t unilink::base::constants::DEFAULT_MAX_CONNECTIONS = 1000
constexpr

Definition at line 64 of file constants.hpp.

◆ DEFAULT_MAX_RECENT_ERRORS

constexpr size_t unilink::base::constants::DEFAULT_MAX_RECENT_ERRORS = 1000
constexpr

Definition at line 71 of file constants.hpp.

◆ DEFAULT_MAX_RETRIES

constexpr int unilink::base::constants::DEFAULT_MAX_RETRIES = -1
constexpr

Definition at line 43 of file constants.hpp.

◆ DEFAULT_MEMORY_POOL_SIZE

constexpr size_t unilink::base::constants::DEFAULT_MEMORY_POOL_SIZE = 100
constexpr

Definition at line 47 of file constants.hpp.

◆ DEFAULT_READ_BUFFER_SIZE

constexpr size_t unilink::base::constants::DEFAULT_READ_BUFFER_SIZE = 4096
constexpr

Definition at line 32 of file constants.hpp.

◆ DEFAULT_RETRY_INTERVAL_MS

constexpr unsigned unilink::base::constants::DEFAULT_RETRY_INTERVAL_MS = 3000
constexpr

Definition at line 35 of file constants.hpp.

◆ DEFAULT_SESSION_TIMEOUT_MS

constexpr size_t unilink::base::constants::DEFAULT_SESSION_TIMEOUT_MS = 30000
constexpr

Definition at line 66 of file constants.hpp.

◆ DEFAULT_THREAD_POOL_SIZE

constexpr size_t unilink::base::constants::DEFAULT_THREAD_POOL_SIZE = 4
constexpr

Definition at line 86 of file constants.hpp.

◆ DEFAULT_THREAD_STACK_SIZE

constexpr unsigned unilink::base::constants::DEFAULT_THREAD_STACK_SIZE = 1024 * 1024
constexpr

Definition at line 89 of file constants.hpp.

◆ LARGE_BUFFER_THRESHOLD

constexpr size_t unilink::base::constants::LARGE_BUFFER_THRESHOLD = 65536
constexpr

Definition at line 55 of file constants.hpp.

◆ MAX_BACKPRESSURE_THRESHOLD

constexpr size_t unilink::base::constants::MAX_BACKPRESSURE_THRESHOLD = 100 << 20
constexpr

Definition at line 31 of file constants.hpp.

◆ MAX_BAUD_RATE

constexpr uint32_t unilink::base::constants::MAX_BAUD_RATE = 4000000
constexpr

Definition at line 79 of file constants.hpp.

◆ MAX_BUFFER_SIZE

constexpr size_t unilink::base::constants::MAX_BUFFER_SIZE = 64 * 1024 * 1024
constexpr

Definition at line 52 of file constants.hpp.

◆ MAX_CLEANUP_INTERVAL_MS

constexpr unsigned unilink::base::constants::MAX_CLEANUP_INTERVAL_MS = 1000
constexpr

Definition at line 60 of file constants.hpp.

◆ MAX_CONNECTION_TIMEOUT_MS

constexpr unsigned unilink::base::constants::MAX_CONNECTION_TIMEOUT_MS = 300000
constexpr

Definition at line 40 of file constants.hpp.

◆ MAX_DATA_BITS

constexpr uint8_t unilink::base::constants::MAX_DATA_BITS = 8
constexpr

Definition at line 81 of file constants.hpp.

◆ MAX_DEVICE_PATH_LENGTH

constexpr size_t unilink::base::constants::MAX_DEVICE_PATH_LENGTH = 256
constexpr

Definition at line 77 of file constants.hpp.

◆ MAX_HOSTNAME_LENGTH

constexpr size_t unilink::base::constants::MAX_HOSTNAME_LENGTH = 253
constexpr

Definition at line 76 of file constants.hpp.

◆ MAX_MAX_CONNECTIONS

constexpr size_t unilink::base::constants::MAX_MAX_CONNECTIONS = 10000
constexpr

Definition at line 65 of file constants.hpp.

◆ MAX_MAX_RECENT_ERRORS

constexpr size_t unilink::base::constants::MAX_MAX_RECENT_ERRORS = 10000
constexpr

Definition at line 72 of file constants.hpp.

◆ MAX_MEMORY_POOL_SIZE

constexpr size_t unilink::base::constants::MAX_MEMORY_POOL_SIZE = 1000
constexpr

Definition at line 49 of file constants.hpp.

◆ MAX_RETRIES_LIMIT

constexpr int unilink::base::constants::MAX_RETRIES_LIMIT = 1000
constexpr

Definition at line 44 of file constants.hpp.

◆ MAX_RETRY_INTERVAL_MS

constexpr unsigned unilink::base::constants::MAX_RETRY_INTERVAL_MS = 300000
constexpr

Definition at line 37 of file constants.hpp.

◆ MAX_SESSION_TIMEOUT_MS

constexpr size_t unilink::base::constants::MAX_SESSION_TIMEOUT_MS = 300000
constexpr

Definition at line 68 of file constants.hpp.

◆ MAX_STOP_BITS

constexpr uint8_t unilink::base::constants::MAX_STOP_BITS = 2
constexpr

Definition at line 83 of file constants.hpp.

◆ MAX_THREAD_POOL_SIZE

constexpr size_t unilink::base::constants::MAX_THREAD_POOL_SIZE = 64
constexpr

Definition at line 88 of file constants.hpp.

◆ MIN_BACKPRESSURE_THRESHOLD

constexpr size_t unilink::base::constants::MIN_BACKPRESSURE_THRESHOLD = 1024
constexpr

Definition at line 30 of file constants.hpp.

◆ MIN_BAUD_RATE

constexpr uint32_t unilink::base::constants::MIN_BAUD_RATE = 50
constexpr

Definition at line 78 of file constants.hpp.

◆ MIN_BUFFER_SIZE

constexpr size_t unilink::base::constants::MIN_BUFFER_SIZE = 1
constexpr

Definition at line 53 of file constants.hpp.

◆ MIN_CLEANUP_INTERVAL_MS

constexpr unsigned unilink::base::constants::MIN_CLEANUP_INTERVAL_MS = 10
constexpr

Definition at line 59 of file constants.hpp.

◆ MIN_CONNECTION_TIMEOUT_MS

constexpr unsigned unilink::base::constants::MIN_CONNECTION_TIMEOUT_MS = 100
constexpr

Definition at line 39 of file constants.hpp.

◆ MIN_DATA_BITS

constexpr uint8_t unilink::base::constants::MIN_DATA_BITS = 5
constexpr

Definition at line 80 of file constants.hpp.

◆ MIN_MEMORY_POOL_SIZE

constexpr size_t unilink::base::constants::MIN_MEMORY_POOL_SIZE = 10
constexpr

Definition at line 48 of file constants.hpp.

◆ MIN_RETRY_INTERVAL_MS

constexpr unsigned unilink::base::constants::MIN_RETRY_INTERVAL_MS = 100
constexpr

Definition at line 36 of file constants.hpp.

◆ MIN_SESSION_TIMEOUT_MS

constexpr size_t unilink::base::constants::MIN_SESSION_TIMEOUT_MS = 1000
constexpr

Definition at line 67 of file constants.hpp.

◆ MIN_STOP_BITS

constexpr uint8_t unilink::base::constants::MIN_STOP_BITS = 1
constexpr

Definition at line 82 of file constants.hpp.

◆ MIN_THREAD_POOL_SIZE

constexpr size_t unilink::base::constants::MIN_THREAD_POOL_SIZE = 1
constexpr

Definition at line 87 of file constants.hpp.