replicode
Namespaces | Macros | Functions
utils.cpp File Reference
#include "utils.h"
#include <thread>
#include <chrono>
#include <algorithm>
#include <cctype>
#include <ctime>
Include dependency graph for utils.cpp:

Namespaces

 core
 

Macros

#define R250_IA   (sizeof(uint32_t)*103)
 
#define R250_IB   (sizeof(uint32_t)*R250_LEN-R250_IA)
 
#define R521_IA   (sizeof(uint32_t)*168)
 
#define R521_IB   (sizeof(uint32_t)*R521_LEN-R521_IA)
 

Functions

bool core::CalcTimeout (struct timespec &timeout, uint32_t ms)
 
uint64_t core::GetTime ()
 
uint8_t core::BSR (uint32_t data)
 
bool core::WaitForSocketReadability (socket s, int32_t timeout)
 
bool core::WaitForSocketWriteability (socket s, int32_t timeout)
 

Macro Definition Documentation

#define R250_IA   (sizeof(uint32_t)*103)
#define R250_IB   (sizeof(uint32_t)*R250_LEN-R250_IA)
#define R521_IA   (sizeof(uint32_t)*168)
#define R521_IB   (sizeof(uint32_t)*R521_LEN-R521_IA)