Skip to main content

Post-processing tools 2023 R2

test_dvs_server.cpp File Reference

Last update: 17.04.2023

Test server to provide example of create a simple server application. More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <stdarg.h>
#include "dvs_server_interface.h"
#include "dynamic_visualization_store_enums.h"
#include "logger.h"
#include <atomic>
#include <chrono>
#include <mutex>
#include <thread>
#include <vector>
#include <signal.h>

Go to the source code of this file.

Functions

void signal_callback_handler (int signum)
 Simple signal handler to handle signal. More...
 
int main (int argc, char **argv)
 Main method of test client application. More...
 

Detailed Description

Test server to provide example of create a simple server application.

This application is to be used as an example when getting started. It will start a server, and run until either ctrl-c is pressed or no new data has been received for 15 seconds (by default)

Version
0.1

Definition in file test_dvs_server.cpp.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Main method of test client application.

Parameters
argcNumber of arguments
argvarguments
Returns
int return value of app (unused)

Definition at line 73 of file test_dvs_server.cpp.

◆ signal_callback_handler()

void signal_callback_handler ( int  signum)

Simple signal handler to handle signal.

Parameters
signumsignal being handled

Definition at line 55 of file test_dvs_server.cpp.