feisty meow concerns codebase  2.140
cromp_common.cpp File Reference
Include dependency graph for cromp_common.cpp:

Go to the source code of this file.

Namespaces

 cromp
 

Macros

#define LOG(to_print)   CLASS_EMERGENCY_LOG(program_wide_logger::get(), astring(to_print).s())
 
#define CHECK_STALENESS
 

Functions

 cromp::SAFE_STATIC_CONST (rsa_crypto, _hidden_localhost_only_key,(encryption_infoton::RSA_KEY_SIZE)) const rsa_crypto &cromp_common
 

Variables

const int cromp::STALENESS_PERIOD = 2 * MINUTE_ms
 
const int cromp::SEND_DELAY_TIME = 200
 
const int cromp::DATA_AWAIT_SNOOZE = 80
 
const int cromp::QUICK_CROMP_SNOOZE = 28
 
const int cromp::CROMP_BUFFER_CHUNK_SIZE = 256 * KILOBYTE
 
const int cromp::MAXIMUM_RECEIVES = 70
 
const int cromp::MAXIMUM_SEND = 128 * KILOBYTE
 
const int cromp::CLEANUP_INTERVAL = 28 * SECOND_ms
 

Macro Definition Documentation

◆ CHECK_STALENESS

#define CHECK_STALENESS
Value:
if (*_last_data_seen < time_stamp(-STALENESS_PERIOD)) { \
LOG("would resynch data due to staleness."); \
_accumulator->zap(0, 0); /* roast first byte */ \
cromp_transaction::resynchronize(*_accumulator); \
_last_data_seen->reset(); \
continue; \
}
Represents a point in time relative to the operating system startup time.
Definition: time_stamp.h:38
const int STALENESS_PERIOD

Definition at line 616 of file cromp_common.cpp.

◆ LOG

#define LOG (   to_print)    CLASS_EMERGENCY_LOG(program_wide_logger::get(), astring(to_print).s())

Definition at line 70 of file cromp_common.cpp.