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

Go to the source code of this file.

Namespaces

 cromp
 

Macros

#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
 

Macro Definition Documentation

◆ AUTO_LOCK

#define AUTO_LOCK    auto_synchronizer l(*_lock)

Definition at line 72 of file cromp_client.cpp.

◆ CAST_REPLY

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

◆ CHECK_LOCKOUT

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

◆ LOG

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

Definition at line 62 of file cromp_client.cpp.