dvs_server_interface.h
Last update: 17.04.2023
Go to the documentation of this file.
Interface class used to run a dynamic data server in a thread accepting incoming client connections.
Definition: dvs_server_interface.h:57
virtual ITransport * create_transport(const std::string &shared_secret)=0
Create a transport object to communicate with server, must be destroyed.
virtual void set_option(const char *key, const char *value)=0
Set a specific option on the server, these are used during startup See See Server Options.
virtual dvs_ret startup(uint32_t server_number, uint32_t local_ranks)=0
Start the server.
virtual void shutdown()=0
Shutdown the server, also called on server destruction by DVS::DESTROY_SERVER_INSTANCE()
virtual dvs_ret get_timestep_count(uint32_t &num_pending, uint32_t &num_complete) const =0
return the current number of pending and complete timesteps in the server
virtual void set_options(const std::map< const char *, const char * > &options)=0
Set a collection of options on the server. Overwrites previous options See. See Server Options.
virtual dvs_ret startup_unthreaded(uint32_t server_number, uint32_t local_ranks)=0
Startup a server manually without threads.
DVS_DLL_EXPORT IServer * CREATE_SERVER_INSTANCE(const char *uri)
Create a DVS::IServer instance for clients to connect to.
DVS_DLL_EXPORT void DESTROY_SERVER_INSTANCE(DVS::IServer *destroy)
Destroy the server instance (also shutting it down if needed)
int32_t dvs_ret
Return value of methods, TODO.
Definition: dynamic_visualization_store_error_codes.h:17