Classes | Macros | Functions | Variables
test_proxy_steerable.cpp File Reference
#include "testutil.hpp"
#include "testutil_unity.hpp"
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
Include dependency graph for test_proxy_steerable.cpp:

Go to the source code of this file.

Classes

struct  thread_data
 

Macros

#define CONTENT_SIZE   13
 
#define CONTENT_SIZE_MAX   32
 
#define is_verbose   0
 
#define QT_CLIENTS   3
 
#define QT_WORKERS   3
 
#define ROUTING_ID_SIZE   10
 
#define ROUTING_ID_SIZE_MAX   32
 
#define TEST_SLEEP_MS   500
 

Functions

static void client_task (void *db_)
 
int main (void)
 
uint64_t read_stat_value (void *proxy_control)
 
void server_task (void *)
 
static void server_worker (void *)
 
void setUp ()
 
uint64_t statistics (void *proxy_control, const char *runctx)
 
void steer (void *proxy_control, const char *command, const char *runctx)
 
void test_proxy_steerable ()
 

Variables

voidcontrol_context = NULL
 
voidg_clients_pkts_out = NULL
 
int g_proxy_control_socktype
 
voidg_workers_pkts_out = NULL
 
const char * proxy_control_address = "inproc://proxy_control"
 

Macro Definition Documentation

◆ CONTENT_SIZE

#define CONTENT_SIZE   13

Definition at line 10 of file test_proxy_steerable.cpp.

◆ CONTENT_SIZE_MAX

#define CONTENT_SIZE_MAX   32

Definition at line 11 of file test_proxy_steerable.cpp.

◆ is_verbose

#define is_verbose   0

Definition at line 16 of file test_proxy_steerable.cpp.

◆ QT_CLIENTS

#define QT_CLIENTS   3

Definition at line 15 of file test_proxy_steerable.cpp.

◆ QT_WORKERS

#define QT_WORKERS   3

Definition at line 14 of file test_proxy_steerable.cpp.

◆ ROUTING_ID_SIZE

#define ROUTING_ID_SIZE   10

Definition at line 12 of file test_proxy_steerable.cpp.

◆ ROUTING_ID_SIZE_MAX

#define ROUTING_ID_SIZE_MAX   32

Definition at line 13 of file test_proxy_steerable.cpp.

◆ TEST_SLEEP_MS

#define TEST_SLEEP_MS   500

Definition at line 17 of file test_proxy_steerable.cpp.

Function Documentation

◆ client_task()

static void client_task ( void db_)
static

Definition at line 52 of file test_proxy_steerable.cpp.

◆ main()

int main ( void  )

Definition at line 508 of file test_proxy_steerable.cpp.

◆ read_stat_value()

uint64_t read_stat_value ( void proxy_control)

Definition at line 340 of file test_proxy_steerable.cpp.

◆ server_task()

void server_task ( void )

Definition at line 168 of file test_proxy_steerable.cpp.

◆ server_worker()

static void server_worker ( void )
static

Definition at line 240 of file test_proxy_steerable.cpp.

◆ setUp()

void setUp ( )

Definition at line 33 of file test_proxy_steerable.cpp.

◆ statistics()

uint64_t statistics ( void proxy_control,
const char *  runctx 
)

Definition at line 352 of file test_proxy_steerable.cpp.

◆ steer()

void steer ( void proxy_control,
const char *  command,
const char *  runctx 
)

Definition at line 392 of file test_proxy_steerable.cpp.

◆ test_proxy_steerable()

void test_proxy_steerable ( )

Definition at line 412 of file test_proxy_steerable.cpp.

Variable Documentation

◆ control_context

void* control_context = NULL

Definition at line 28 of file test_proxy_steerable.cpp.

◆ g_clients_pkts_out

void* g_clients_pkts_out = NULL

Definition at line 26 of file test_proxy_steerable.cpp.

◆ g_proxy_control_socktype

int g_proxy_control_socktype
Initial value:

Definition at line 30 of file test_proxy_steerable.cpp.

◆ g_workers_pkts_out

void* g_workers_pkts_out = NULL

Definition at line 27 of file test_proxy_steerable.cpp.

◆ proxy_control_address

const char* proxy_control_address = "inproc://proxy_control"

Definition at line 19 of file test_proxy_steerable.cpp.

ZMQ_PAIR
#define ZMQ_PAIR
Definition: zmq.h:258


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