Hi! If you are using gRPC C++, you can create server and client calls on 
the same completion queue so that when you wait for event on that 
completion queue you wait for those from both sides.

On Tuesday, October 31, 2017 at 2:50:15 AM UTC-7, Ista Ranjan Samanta wrote:
>
> Hey!
>
> I am also looking into the same kind of handling mechanism to leverage 
> gRPC promises one step forward 
> but unfortunately there is no such example or explanations in the web that 
> I found (:-
>
> It's really appreciated if anyone from Core team can reply something here 
> or update the doc with examples that really shows it.
>
> Looking forward -- waiting for a reply ! Thanks.
>
>
> Regards
> ista
> Email :- ista.s...@gmail.com <javascript:>
>
>
>  
>
>
> On Thursday, October 12, 2017 at 6:54:52 PM UTC+2, Maysam Mehraban wrote:
>>
>> Hello,
>>
>> I am looking into possibility of listening on different sockets at once. 
>> To handle multiple socket connection at the same fd_set can be used in 
>> Linux. I have seen that gRPC also support this functionality with having 
>> epoll based pollset.
>>
>>
>> https://github.com/grpc/grpc/blob/18df25228cfa1f97fc5cca9176fbaef64c0e4221/doc/epoll-polling-engine.md
>>
>> I intend to call different services in async mode and providing a service 
>> at the same time. Therefore, I was thinking about having a poll-set consist 
>> of client sockets waiting for async responses and server sockets. It seems 
>> to be possible in gRPC. I haven't been able to find anything in gRPC API 
>> that exposes construction of a poll-set.
>>
>> Hence, my question is how to use this capability of gRPC?
>>
>> Does gRPC manages this automatically? In that case how can I wait for 
>> incoming messages?
>>
>> Many Thanks in advance.
>>
>> Best// Maysam
>>
>

-- 
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 grpc-io+unsubscr...@googlegroups.com.
To post to this group, send email to grpc-io@googlegroups.com.
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/33298e9b-9529-41c7-85c7-b5a04fc354a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to