Or don't call Wait() ? On Tue, Mar 12, 2019 at 11:15 AM <[email protected]> wrote:
> 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 > <https://groups.google.com/d/msgid/grpc-io/fccddebc-0bbd-4d0d-a9b0-eaa14d9a30d6%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Christian Rivasseau Co-founder and CTO @ Lefty <http://www.lefty.io> +33 6 67 35 26 74 -- 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/CAJ6g4%3DY43h629y5muVTrDxPYb_wiUD2-jgo9-8-mLYwkFu2ioA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
