feisty meow concerns codebase  2.140
cromp Namespace Reference

Classes

class  cromp_client
 
class  cromp_common
 A few common features used by both CROMP clients and servers. More...
 
class  cromp_security
 Implements the client registry in a cromp-appropriate manner. More...
 
class  cromp_server
 
class  cromp_transaction
 

Functions

 SAFE_STATIC (byte_array, _empty_blank_verif,)
 
 SAFE_STATIC_CONST (rsa_crypto, _hidden_localhost_only_key,(encryption_infoton::RSA_KEY_SIZE)) const rsa_crypto &cromp_common
 
byte_arraycromp_name_array ()
 

Variables

const int MAX_CONN_ATTEMPTS = 3
 
const int INTERCONNECTION_SNOOZE = 200
 
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
 
const int DEFAULT_MAX_ENTITY_QUEUE = 14 * basis::MEGABYTE
 the default size we allow per each entity. More...
 
const int DEAD_CLIENT_CLEANING_INTERVAL = 1 * SECOND_ms
 
const int MAXIMUM_ACTIONS_PER_CLIENT = 4000
 
const int SEND_TRIES_ALLOWED = 1
 
const int SEND_THRESHOLD = 512 * KILOBYTE
 
const int EXTREME_SEND_TRIES_ALLOWED = 28
 
const int MAXIMUM_BYTES_PER_SEND = 2 * MEGABYTE
 
const int MAXIMUM_SIZE_BATCH = 384 * KILOBYTE
 
const int DROPPING_INTERVAL = 500
 
const int DATA_AWAIT_TIMEOUT = 14
 
const int ACCEPTANCE_SNOOZE = 60
 
const int MAXIMUM_TRANSACTION = 100 * MEGABYTE
 

Function Documentation

◆ cromp_name_array()

byte_array& cromp::cromp_name_array ( )

◆ SAFE_STATIC()

cromp::SAFE_STATIC ( byte_array  ,
_empty_blank_verif   
)

◆ SAFE_STATIC_CONST()

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

Definition at line 107 of file cromp_common.cpp.

References FUNCDEF, and LOG.

Variable Documentation

◆ ACCEPTANCE_SNOOZE

const int cromp::ACCEPTANCE_SNOOZE = 60

Definition at line 84 of file cromp_server.cpp.

Referenced by cromp::cromp_server::look_for_clients().

◆ CLEANUP_INTERVAL

const int cromp::CLEANUP_INTERVAL = 28 * SECOND_ms

Definition at line 96 of file cromp_common.cpp.

◆ CROMP_BUFFER_CHUNK_SIZE

const int cromp::CROMP_BUFFER_CHUNK_SIZE = 256 * KILOBYTE

Definition at line 86 of file cromp_common.cpp.

◆ DATA_AWAIT_SNOOZE

const int cromp::DATA_AWAIT_SNOOZE = 80

Definition at line 79 of file cromp_common.cpp.

◆ DATA_AWAIT_TIMEOUT

const int cromp::DATA_AWAIT_TIMEOUT = 14

Definition at line 81 of file cromp_server.cpp.

◆ DEAD_CLIENT_CLEANING_INTERVAL

const int cromp::DEAD_CLIENT_CLEANING_INTERVAL = 1 * SECOND_ms

Definition at line 55 of file cromp_server.cpp.

Referenced by cromp::cromp_server::drop_dead_clients().

◆ DEFAULT_MAX_ENTITY_QUEUE

const int cromp::DEFAULT_MAX_ENTITY_QUEUE = 14 * basis::MEGABYTE

the default size we allow per each entity.

note that if there are many entities and they're all getting full, the total allowed will be this number multiplied by the number of entities.

Definition at line 28 of file cromp_common.h.

Referenced by cromp::cromp_common::cromp_common().

◆ DROPPING_INTERVAL

const int cromp::DROPPING_INTERVAL = 500

Definition at line 78 of file cromp_server.cpp.

◆ EXTREME_SEND_TRIES_ALLOWED

const int cromp::EXTREME_SEND_TRIES_ALLOWED = 28

Definition at line 69 of file cromp_server.cpp.

◆ INTERCONNECTION_SNOOZE

const int cromp::INTERCONNECTION_SNOOZE = 200

Definition at line 67 of file cromp_client.cpp.

◆ MAX_CONN_ATTEMPTS

const int cromp::MAX_CONN_ATTEMPTS = 3

Definition at line 64 of file cromp_client.cpp.

◆ MAXIMUM_ACTIONS_PER_CLIENT

const int cromp::MAXIMUM_ACTIONS_PER_CLIENT = 4000

Definition at line 58 of file cromp_server.cpp.

◆ MAXIMUM_BYTES_PER_SEND

const int cromp::MAXIMUM_BYTES_PER_SEND = 2 * MEGABYTE

Definition at line 72 of file cromp_server.cpp.

◆ MAXIMUM_RECEIVES

const int cromp::MAXIMUM_RECEIVES = 70

Definition at line 89 of file cromp_common.cpp.

◆ MAXIMUM_SEND

const int cromp::MAXIMUM_SEND = 128 * KILOBYTE

Definition at line 92 of file cromp_common.cpp.

Referenced by cromp::cromp_common::send_buffer().

◆ MAXIMUM_SIZE_BATCH

const int cromp::MAXIMUM_SIZE_BATCH = 384 * KILOBYTE

Definition at line 75 of file cromp_server.cpp.

◆ MAXIMUM_TRANSACTION

const int cromp::MAXIMUM_TRANSACTION = 100 * MEGABYTE

Definition at line 42 of file cromp_transaction.cpp.

Referenced by cromp::cromp_transaction::peek_header().

◆ QUICK_CROMP_SNOOZE

const int cromp::QUICK_CROMP_SNOOZE = 28

Definition at line 82 of file cromp_common.cpp.

Referenced by cromp::cromp_common::push_outgoing().

◆ SEND_DELAY_TIME

const int cromp::SEND_DELAY_TIME = 200

Definition at line 76 of file cromp_common.cpp.

Referenced by cromp::cromp_common::push_outgoing().

◆ SEND_THRESHOLD

const int cromp::SEND_THRESHOLD = 512 * KILOBYTE

Definition at line 65 of file cromp_server.cpp.

◆ SEND_TRIES_ALLOWED

const int cromp::SEND_TRIES_ALLOWED = 1

Definition at line 62 of file cromp_server.cpp.

◆ STALENESS_PERIOD

const int cromp::STALENESS_PERIOD = 2 * MINUTE_ms

Definition at line 72 of file cromp_common.cpp.