#include "cromp_common.h"#include "cromp_transaction.h"#include <basis/byte_array.h>#include <basis/function.h>#include <basis/istring.h>#include <basis/log_base.h>#include <basis/mutex.h>#include <basis/portable.h>#include <data_struct/static_memory_gremlin.h>#include <mechanisms/time_stamp.h>#include <octopus/entity_data_bin.h>#include <octopus/entity_defs.h>#include <octopus/infoton.h>#include <octopus/octopus.h>#include <octopus/tentacle.h>#include <octopus/unhandled_request.h>#include <loggers/file_logger.h>#include <sockets/address.h>#include <sockets/machine_uid.h>#include <sockets/spocket.h>#include <sockets/tcpip_stack.h>#include <textual/byte_format.h>#include <crypto/rsa_crypto.h>#include <tentacles/encryption_infoton.h>Include dependency graph for cromp_common.cpp:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Defines | |
| #define | LOG(s) |
| #define | CHECK_STALENESS |
Functions | |
| SAFE_STATIC_CONST (RSA_crypto, _hidden_localhost_only_key,(encryption_infoton::RSA_KEY_SIZE)) const RSA_crypto &cromp_common | |
Variables | |
| const int | STALENESS_PERIOD = 2 * MINUTE_ms |
| const int | SEND_DELAY_TIME = 200 |
| const int | DATA_AWAIT_SNOOZE = 80 |
| const int | QUICK_CROMP_SNOOZE = 28 |
| const int | CROMP_BUFFER_CHUNK_SIZE = 256 * KILOBYTE |
| const int | MAXIMUM_RECEIVES = 70 |
| const int | MAXIMUM_SEND = 128 * KILOBYTE |
| const int | CLEANUP_INTERVAL = 28 * SECOND_ms |
| #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; \ }
Definition at line 609 of file cromp_common.cpp.
| #define LOG | ( | s | ) |
Definition at line 68 of file cromp_common.cpp.
| SAFE_STATIC_CONST | ( | RSA_crypto | , | |
| _hidden_localhost_only_key | , | |||
| (encryption_infoton::RSA_KEY_SIZE) | ||||
| ) | const |
| const int CLEANUP_INTERVAL = 28 * SECOND_ms |
Definition at line 95 of file cromp_common.cpp.
| const int CROMP_BUFFER_CHUNK_SIZE = 256 * KILOBYTE |
Definition at line 85 of file cromp_common.cpp.
| const int DATA_AWAIT_SNOOZE = 80 |
Definition at line 78 of file cromp_common.cpp.
| const int MAXIMUM_RECEIVES = 70 |
Definition at line 88 of file cromp_common.cpp.
| const int MAXIMUM_SEND = 128 * KILOBYTE |
| const int QUICK_CROMP_SNOOZE = 28 |
| const int SEND_DELAY_TIME = 200 |
| const int STALENESS_PERIOD = 2 * MINUTE_ms |
Definition at line 71 of file cromp_common.cpp.
1.5.1