cromp_client.cpp File Reference

#include "cromp_client.h"
#include <crypto/rsa_crypto.h>
#include <octopus/octopus.h>
#include <octopus/entity_defs.h>
#include <octopus/entity_data_bin.h>
#include <octopus/infoton.h>
#include <sockets/internet_address.h>
#include <sockets/machine_uid.h>
#include <sockets/spocket.h>
#include <sockets/tcpip_stack.h>
#include <crypto/blowfish_crypto.h>
#include <structures/roller.h>
#include <tentacles/encryption_tentacle.h>
#include <tentacles/encryption_wrapper.h>
#include <tentacles/entity_registry.h>
#include <timely/time_stamp.h>
#include "cromp_common.h"
#include <basis/contracts.h>
#include <basis/astring.h>
#include <basis/functions.h>
#include <basis/mutex.h>
#include <configuration/application_configuration.h>
#include <loggers/program_wide_logger.h>
#include <mathematics/chaos.h>
#include <octopus/identity_infoton.h>
#include <octopus/unhandled_request.h>
#include <processes/ethread.h>
#include <structures/static_memory_gremlin.h>
#include <tentacles/key_repository.h>
#include <tentacles/login_tentacle.h>
#include <tentacles/security_infoton.h>
#include <timely/time_control.h>
Include dependency graph for cromp_client.cpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  cromp

Defines

#define LOG(s)   CLASS_EMERGENCY_LOG(program_wide_logger::get(), s)
#define AUTO_LOCK   auto_synchronizer l(*_lock)
#define CHECK_LOCKOUT
#define CAST_REPLY(type, varname, newvar, retval)

Functions

 cromp::SAFE_STATIC (byte_array, _empty_blank_verif,)

Variables

const int cromp::MAX_CONN_ATTEMPTS = 3
const int cromp::INTERCONNECTION_SNOOZE = 200

Define Documentation

#define AUTO_LOCK   auto_synchronizer l(*_lock)
#define CAST_REPLY ( type,
varname,
newvar,
retval   ) 
Value:
type *newvar = dynamic_cast<type *>(varname); \
  if (!newvar) { \
    LOG("failed to cast " #varname " to appropriate type, " #type "."); \
    WHACK(varname); \
    return retval; \
  }

Definition at line 83 of file cromp_client.cpp.

Referenced by cromp::cromp_client::login().

#define CHECK_LOCKOUT
Value:
if (_disallowed) { \
    /* we can't do anything now due to the state of the connection. */ \
    return NO_CONNECTION; \
  }

Definition at line 76 of file cromp_client.cpp.

Referenced by cromp::cromp_client::acquire(), cromp::cromp_client::acquire_any(), cromp::cromp_client::login(), and cromp::cromp_client::submit().

#define LOG (  )     CLASS_EMERGENCY_LOG(program_wide_logger::get(), s)

Definition at line 62 of file cromp_client.cpp.

Generated on Sat Jan 28 04:24:45 2012 for hoople2 project by  doxygen 1.6.3