> ## 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.

# dvs_server_interface.h File Reference

C++ Server API for using Dynamic Visualization Store Server.

`#include <map>`\
&#x20;`#include <string>`\
&#x20;`#include "dvs_query_interface.h"`\
&#x20;`#include "transport_interface.h"`\
&#x20;`#include "dvs_import_export.h"`\


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

## Classes

| Type | Name |
| - | - |
| class | [DVS::IServer](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/class_d_v_s_1_1_i_server.md) Interface class used to run a dynamic data server in a thread accepting incoming client connections. |

## Functions

| Type | Name |
| - | - |
| DVS\_DLL\_EXPORT [IServer](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/class_d_v_s_1_1_i_server.md) \* | [DVS::CREATE\_SERVER\_INSTANCE](#a852580b9a49ac305e4ae26ca637bcc75) (const char \*uri) Create a [DVS::IServer](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/class_d_v_s_1_1_i_server.md) instance for clients to connect to. |
| DVS\_DLL\_EXPORT void | [DVS::DESTROY\_SERVER\_INSTANCE](#adcdcbab1954ec53631a7136af7fc49b8) ([DVS::IServer](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/class_d_v_s_1_1_i_server.md) \*destroy) Destroy the server instance (also shutting it down if needed) |

## Detailed Description

C++ Server API for using Dynamic Visualization Store Server.

```cpp theme={null}
1.) Instantiate DVS::IServer using DVS::CREATE_SERVER_INSTANCE() method
2.) Set options using DVS::IServer::set_options() or DVS::IServer::set_option()
3.) Startup server using DVS::IServer::startup()
4.) If needed see if it's running via DVS::IServer::running()
5.) Shutdown server using DVS::IServer::shutdown()
6.) Destroy instance using DVS::DESTROY_SERVER_INSTANCE()
```

Definition in file [dvs\_server\_interface.h](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/dvs__server__interface_8h_source).

## Function Documentation

### CREATE\_SERVER\_INSTANCE()

```cpp theme={null}
DVS_DLL_EXPORT IServer * DVS::CREATE_SERVER_INSTANCE(const char * uri)
```

Create a [DVS::IServer](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/class_d_v_s_1_1_i_server.md) instance for clients to connect to.

There are currently 2 types of server communication, grpc over a network or "null" which uses direct method calls.

**Parameters**

| Name | Description |
| - | - |
| uri | URI of server to create of the format protocol://hostname:port, i.e. grpc://localhost:50055 or null:// see [Server URIs](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/group__group__dvs__uri.md#dvs_server_uri) for more info. |

**Returns**

IServer\* instance to be later destroyed by calling [DVS::DESTROY\_SERVER\_INSTANCE()](#adcdcbab1954ec53631a7136af7fc49b8)

### DESTROY\_SERVER\_INSTANCE()

```cpp theme={null}
DVS_DLL_EXPORT void DVS::DESTROY_SERVER_INSTANCE(DVS::IServer * destroy)
```

Destroy the server instance (also shutting it down if needed)

**Parameters**

| Name | Description |
| - | - |
| destroy | [DVS::IServer](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/class_d_v_s_1_1_i_server.md) instance to destroy |
