Hi,
I have a machine control program which is written in c++. I want this program to also have a grpc server, so that one can remotely check the status of the machine. I followed the tutorial and start the server like this:
builder.AddListeningPort(server_address, grpc::InsecureServerCredentials());
builder.RegisterService(&service);
std::unique_ptr<Server> server(builder.BuildAndStart());
server->Wait();
the wait() seems to be blocking, so my machine user interface does not continue. Does this mean I need to start the grpc server in its own thread?
Best regards,
Maxwell