Re: [vpp-dev] API If Client doesnot have any pending request , it wont read the queue

2018-08-17 Thread chetan bhasin
Thanks a lot Klement. On Fri, Aug 17, 2018 at 5:36 PM, Klement Sekera wrote: > Hi Chetan, > > I think that in this case it's better to use blocking interface, as you > are waiting for the events to come. > > You can take a look at test/ext/vapi_c_test.c - tests called > test_stats_1, _2 & _3 dea

Re: [vpp-dev] API If Client doesnot have any pending request , it wont read the queue

2018-08-17 Thread Klement Sekera via Lists.Fd.Io
Hi Chetan, I think that in this case it's better to use blocking interface, as you are waiting for the events to come. You can take a look at test/ext/vapi_c_test.c - tests called  test_stats_1, _2 & _3 deal with stats - first two show a blocking, efficient interface, third one is non-blocking, w

Re: [vpp-dev] API If Client doesnot have any pending request , it wont read the queue

2018-08-17 Thread chetan bhasin
Hi Klement, Thanks for your reply! The exact problem statement is , we are trying to send some events from VPP to client app , but client is not able to read those events api messages until it has some pending requests. So as a work-around we are sending control ping after few seconds from client

Re: [vpp-dev] API If Client doesnot have any pending request , it wont read the queue

2018-08-17 Thread Klement Sekera via Lists.Fd.Io
What exactly is the issue? According to vapi_dispatch() docstring this is expected: /**  * @brief loop vapi_dispatch_one until responses to all currently outstanding  * requests have been received and their callbacks called  *  * @note the dispatch loop is interrupted if any error is encountered o