papi: introduce read_blocking 25/21925/9
authorVratko Polak <vrpolak@cisco.com>
Tue, 10 Sep 2019 11:35:11 +0000 (13:35 +0200)
committerOle Trøan <otroan@employees.org>
Wed, 9 Oct 2019 09:23:29 +0000 (09:23 +0000)
commit0938547eaaf5440de28877fa4f873c21bcb8cfbf
tree18e4a1dd437307d3fa83842763122e00b0c3ce0a
parentd6f1c9c5141c177a14d011a514e392a9357398fb
papi: introduce read_blocking

Previously, self.transport.q got the messages
(at least for socket transport), stored in the encoded (packed) form.
In order to avoid accessing internals for async reads,
a new method is introduced, to perform
blocking reads of decoded (unpacked) messages.

The method is also used in _call_vpp(),
so sync and async reads are kept compatible.

Type: feature

Change-Id: Id49792dfa57c00b1a14a198031c5398d09a9ba20
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
src/vpp-api/python/vpp_papi/vpp_papi.py