> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# test_dvs_server.cpp File Reference

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

`#include <stdio.h>`\
&#x20;`#include <stdlib.h>`\
&#x20;`#include <string.h>`\
&#x20;`#include <stdint.h>`\
&#x20;`#include <stdarg.h>`\
&#x20;`#include "dvs_server_interface.h"`\
&#x20;`#include "dynamic_visualization_store_enums.h"`\
&#x20;`#include "src/util/logger.h"`\
&#x20;`#include <atomic>`\
&#x20;`#include <chrono>`\
&#x20;`#include <mutex>`\
&#x20;`#include <thread>`\
&#x20;`#include <vector>`\
&#x20;`#include <signal.h>`\


[Go to the source code of this file.](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/test__dvs__server_8cpp_source)

## Functions

| Type | Name |
| - | - |
| void | [signal\_callback\_handler](#a89a8322bea357674e81ba9cbdefe0378) (int signum) Simple signal handler to handle signal. |
| int | [main](#a3c04138a5bfe5d72780bb7e82a18e627) (int argc, char \*\*argv) Main method of test client application. |

## 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](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/test__dvs__server_8cpp_source).

## Function Documentation

### main()

```cpp theme={null}
int main(
    int argc,
    char ** argv
)
```

Main method of test client application.

**Parameters**

| Name | Description |
| - | - |
| argc | Number of arguments |
| argv | arguments |

**Returns**

int return value of app (unused)

Definition at line [73](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/test__dvs__server_8cpp_source) of file [test\_dvs\_server.cpp](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/test__dvs__server_8cpp_source).

### signal\_callback\_handler()

```cpp theme={null}
void signal_callback_handler(int signum)
```

Simple signal handler to handle signal.

**Parameters**

| Name | Description |
| - | - |
| signum | signal being handled |

Definition at line [55](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/test__dvs__server_8cpp_source) of file [test\_dvs\_server.cpp](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/test__dvs__server_8cpp_source).
