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

# cli_server.h

```cpp theme={null}
#pragma once

#include "core/service/grpc/cli/i_cli_server.h"
#include "core/service/sim_runner/i_sim_runner.h"
#include <atomic>
#include <thread>

namespace simulation_framework
{
namespace core
{

class SimfwkCliServer : public ISimfwkCliServer
{
 public:
 SimfwkCliServer(const std::string& server_address);

 ~SimfwkCliServer();

 void WaitForCommand();

    std::string GetServerAddress();

 void BindSimRunner(std::unique_ptr<simulation_framework::core::ISimRunner> sim_runner);

 private:
    std::string server_address_;
    std::atomic_bool sim_runner_binded_{false};
    std::thread grpc_server_thread_;
};

}  // namespace core
}  // namespace simulation_framework
```
