zhelpers.h File Reference

#include <zmq.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <sys/time.h>
#include <assert.h>
#include <signal.h>

Go to the source code of this file.

Defines

#define randof(num)   (int) ((float) (num) * random () / (RAND_MAX + 1.0))

Functions

static char * s_recv (void *socket)
static int s_send (void *socket, char *string)
static int s_sendmore (void *socket, char *string)
static void s_dump (void *socket)
static void s_set_id (void *socket)
static int64_t s_clock (void)

Define Documentation

#define randof ( num   )     (int) ((float) (num) * random () / (RAND_MAX + 1.0))

Referenced by s_set_id().


Function Documentation

static int64_t s_clock ( void   )  [static]
static void s_dump ( void *  socket  )  [static]
static char* s_recv ( void *  socket  )  [static]
static int s_send ( void *  socket,
char *  string 
) [static]

Referenced by main().

static int s_sendmore ( void *  socket,
char *  string 
) [static]
static void s_set_id ( void *  socket  )  [static]

References randof.


Generated on 28 May 2018 for CAFE by  doxygen 1.6.1