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

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/fccddebc-0bbd-4d0d-a9b0-eaa14d9a30d6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to