Functions | Variables
zmq_utils.cpp File Reference
#include "precompiled.hpp"
#include "macros.hpp"
#include "clock.hpp"
#include "err.hpp"
#include "thread.hpp"
#include "atomic_counter.hpp"
#include "atomic_ptr.hpp"
#include "random.hpp"
#include <assert.h>
#include <new>
#include <unistd.h>
Include dependency graph for zmq_utils.cpp:

Go to the source code of this file.

Functions

int zmq_atomic_counter_dec (void *counter_)
 
void zmq_atomic_counter_destroy (void **counter_p_)
 
int zmq_atomic_counter_inc (void *counter_)
 
voidzmq_atomic_counter_new (void)
 
void zmq_atomic_counter_set (void *counter_, int value_)
 
int zmq_atomic_counter_value (void *counter_)
 
int zmq_curve_keypair (char *z85_public_key_, char *z85_secret_key_)
 
int zmq_curve_public (char *z85_public_key_, const char *z85_secret_key_)
 
void zmq_sleep (int seconds_)
 
unsigned long zmq_stopwatch_intermediate (void *watch_)
 
voidzmq_stopwatch_start ()
 
unsigned long zmq_stopwatch_stop (void *watch_)
 
void zmq_threadclose (void *thread_)
 
voidzmq_threadstart (zmq_thread_fn *func_, void *arg_)
 
uint8_t * zmq_z85_decode (uint8_t *dest_, const char *string_)
 
char * zmq_z85_encode (char *dest_, const uint8_t *data_, size_t size_)
 

Variables

static uint8_t decoder [96]
 
static char encoder [85+1]
 

Function Documentation

◆ zmq_atomic_counter_dec()

int zmq_atomic_counter_dec ( void counter_)

Definition at line 279 of file zmq_utils.cpp.

◆ zmq_atomic_counter_destroy()

void zmq_atomic_counter_destroy ( void **  counter_p_)

Definition at line 293 of file zmq_utils.cpp.

◆ zmq_atomic_counter_inc()

int zmq_atomic_counter_inc ( void counter_)

Definition at line 271 of file zmq_utils.cpp.

◆ zmq_atomic_counter_new()

void* zmq_atomic_counter_new ( void  )

Definition at line 255 of file zmq_utils.cpp.

◆ zmq_atomic_counter_set()

void zmq_atomic_counter_set ( void counter_,
int  value_ 
)

Definition at line 264 of file zmq_utils.cpp.

◆ zmq_atomic_counter_value()

int zmq_atomic_counter_value ( void counter_)

Definition at line 286 of file zmq_utils.cpp.

◆ zmq_curve_keypair()

int zmq_curve_keypair ( char *  z85_public_key_,
char *  z85_secret_key_ 
)

Definition at line 190 of file zmq_utils.cpp.

◆ zmq_curve_public()

int zmq_curve_public ( char *  z85_public_key_,
const char *  z85_secret_key_ 
)

Definition at line 222 of file zmq_utils.cpp.

◆ zmq_sleep()

void zmq_sleep ( int  seconds_)

Definition at line 23 of file zmq_utils.cpp.

◆ zmq_stopwatch_intermediate()

unsigned long zmq_stopwatch_intermediate ( void watch_)

Definition at line 40 of file zmq_utils.cpp.

◆ zmq_stopwatch_start()

void* zmq_stopwatch_start ( )

Definition at line 32 of file zmq_utils.cpp.

◆ zmq_stopwatch_stop()

unsigned long zmq_stopwatch_stop ( void watch_)

Definition at line 47 of file zmq_utils.cpp.

◆ zmq_threadclose()

void zmq_threadclose ( void thread_)

Definition at line 62 of file zmq_utils.cpp.

◆ zmq_threadstart()

void* zmq_threadstart ( zmq_thread_fn func_,
void arg_ 
)

Definition at line 54 of file zmq_utils.cpp.

◆ zmq_z85_decode()

uint8_t* zmq_z85_decode ( uint8_t *  dest_,
const char *  string_ 
)

Definition at line 135 of file zmq_utils.cpp.

◆ zmq_z85_encode()

char* zmq_z85_encode ( char *  dest_,
const uint8_t *  data_,
size_t  size_ 
)

Definition at line 101 of file zmq_utils.cpp.

Variable Documentation

◆ decoder

uint8_t decoder[96]
static
Initial value:
= {
0xFF, 0x44, 0xFF, 0x54, 0x53, 0x52, 0x48, 0xFF, 0x4B, 0x4C, 0x46, 0x41,
0xFF, 0x3F, 0x3E, 0x45, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
0x08, 0x09, 0x40, 0xFF, 0x49, 0x42, 0x4A, 0x47, 0x51, 0x24, 0x25, 0x26,
0x27, 0x28, 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, 0x32,
0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x4D,
0xFF, 0x4E, 0x43, 0xFF, 0xFF, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10,
0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C,
0x1D, 0x1E, 0x1F, 0x20, 0x21, 0x22, 0x23, 0x4F, 0xFF, 0x50, 0xFF, 0xFF}

Definition at line 85 of file zmq_utils.cpp.

◆ encoder

char encoder[85+1]
static
Initial value:
= {"0123456789"
"abcdefghij"
"klmnopqrst"
"uvwxyzABCD"
"EFGHIJKLMN"
"OPQRSTUVWX"
"YZ.-:+=^!/"
"*?&<>()[]{"
"}@%$#"}

Definition at line 72 of file zmq_utils.cpp.



libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:05