[grpc c++] How to make asynchronous server side support multiple bidistreaming clients

36 views
Skip to first unread message

jinyi.s...@gmail.com

unread,
Sep 10, 2017, 8:59:15 AM9/10/17
to grpc.io
Hi,

I am trying to write a grpc server supporting a service having bidistreaming communication mode. The server is asynchronous.

I am not quite clear how to identify different client connections from one asynchronous server according to the tag only, as the tag is returned from the only completion queue. Are there anything I misunderstood? Thanks!

Best,
Yi

jinyi.s...@gmail.com

unread,
Sep 10, 2017, 9:41:56 AM9/10/17
to grpc.io
My current idea is to expose one service to let client request a streaming, then server allocate unique tag id sets and prepare a set of server side objects, including context, stream object. When the client gets the tag id set, it can consequently using prepared streaming to communicate with server side where those asynchronous streaming facilities are ready to work. Does this make sense?

在 2017年9月10日星期日 UTC+10下午10:59:15,jinyi.s...@gmail.com写道:
Reply all
Reply to author
Forward
Message has been deleted
0 new messages