cromp_common.cpp File Reference

#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 Documentation

#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 (  ) 

Definition at line 68 of file cromp_common.cpp.


Function Documentation

SAFE_STATIC_CONST ( RSA_crypto  ,
_hidden_localhost_only_key  ,
(encryption_infoton::RSA_KEY_SIZE  
) const

Definition at line 109 of file cromp_common.cpp.

References FUNCDEF, and LOG.


Variable Documentation

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

Definition at line 91 of file cromp_common.cpp.

Referenced by cromp_common::send_buffer().

const int QUICK_CROMP_SNOOZE = 28

Definition at line 81 of file cromp_common.cpp.

Referenced by cromp_common::push_outgoing().

const int SEND_DELAY_TIME = 200

Definition at line 75 of file cromp_common.cpp.

Referenced by cromp_common::push_outgoing().

const int STALENESS_PERIOD = 2 * MINUTE_ms

Definition at line 71 of file cromp_common.cpp.


Generated on Tue Aug 19 04:30:16 2008 for HOOPLE Libraries by  doxygen 1.5.1