Re: [grpc-io] Re: Non-blocking single-threaded streaming C++ server

2018-03-13 Thread 'Yang Gao' via grpc.io
Maybe you are over simplifying the code but the snippet does not look correct to me. 1. Your Read call is async, meaning it is more like StartRead and tell me via tag when there is something. So it does not make sense to log the args on its return. 2. You request a MdtDialOut but you do not seem

[grpc-io] Re: Non-blocking single-threaded streaming C++ server

2018-03-12 Thread Todd Defilippi
Thanks! I have been messing around with using AsyncNext. My long-term plan is to have some timer that calls back and checks if there is anything in the completion queue via AsyncNext. For now, I've just been trying to get some basics to work. Below I have the code I'm using. (Ignore the