Thanks Ole for pointing at the asynchronous events. If they work like interrupts, then there should not be any problem with synchronous client. Please let me know your thoughts.
Thanks, Leela sankar From: <vpp-dev@lists.fd.io> on behalf of Ole Troan <otr...@employees.org> Date: Monday, July 30, 2018 at 3:24 PM To: Leela Gudimetla <lgudi...@ciena.com> Cc: "vpp-dev@lists.fd.io" <vpp-dev@lists.fd.io> Subject: [**EXTERNAL**] Re: [vpp-dev] Synchronous VPP-client over SHM Hi, You can run synchronously, but then you need to find a way to deal with asynchronous events. Like the want_ apis. src/vpp-api/client has a knob to choose if you want the rx thread or not. Cheers Ole On 30 Jul 2018, at 23:19, Gudimetla, Leela Sankar <lgudi...@ciena.com<mailto:lgudi...@ciena.com>> wrote: Hello, We are writing a client for VPP to configure it over the shared-memory interface (similar to what VAT does). I see that there is a rx_thread for processing responses from the server (VPP) to process the replies asynchronously. Do we need to use the thread? Or Can we get rid of it and process the responses synchronously probably by introducing a wait if there is only one request at time from the client? This way I can use the same request context to catch the “reply_t” structure. If it works, I can have request – response in a single call and return the response structure. Please let me know if I can get rid of the rx_thread and handle this synchronously. Thanks, Leela sankar -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#9975): https://lists.fd.io/g/vpp-dev/message/9975 Mute This Topic: https://lists.fd.io/mt/23864436/675193 Group Owner: vpp-dev+ow...@lists.fd.io<mailto:vpp-dev+ow...@lists.fd.io> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [otr...@employees.org<mailto:otr...@employees.org>] -=-=-=-=-=-=-=-=-=-=-=-
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#9990): https://lists.fd.io/g/vpp-dev/message/9990 Mute This Topic: https://lists.fd.io/mt/23923763/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-