Adds StopNotifier and StopRpcServer functions

Workaround for #30.  Allows libraries to shut down the secondary
threads.
This commit is contained in:
Thad House
2015-11-11 20:50:30 -08:00
parent 3469f6733c
commit a142cc48d3
5 changed files with 30 additions and 0 deletions

View File

@@ -350,6 +350,16 @@ void NT_StartClient(const char *server_name, unsigned int port);
*/
void NT_StopClient(void);
/** Stop Rpc Server
* Stops the Rpc server if it is running.
*/
void NT_StopRpcServer(void);
/** Stop Notifier
* Stops the Notifier (Entry and Connection Listener) thread if it is running.
*/
void NT_StopNotifier(void);
/** Set Update Rate
* Sets the update rate of the table
*

View File

@@ -229,6 +229,8 @@ void StartServer(StringRef persist_filename, const char* listen_address,
void StopServer();
void StartClient(const char* server_name, unsigned int port);
void StopClient();
void StopRpcServer();
void StopNotifier();
void SetUpdateRate(double interval);
std::vector<ConnectionInfo> GetConnections();