Ah, so the server is also running if I dont call wait? Am Dienstag, 12. März 2019 11:18:39 UTC+1 schrieb Christian Rivasseau: > > Or don't call Wait() ? > > On Tue, Mar 12, 2019 at 11:15 AM <[email protected] <javascript:>> > 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] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> 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/585cac9f-611f-43d8-bd37-89618a4d6411%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
