sock api: fix registrations and client reads 14/15114/5
authorFlorin Coras <fcoras@cisco.com>
Wed, 3 Oct 2018 01:29:25 +0000 (18:29 -0700)
committerDave Barach <openvpp@barachs.net>
Wed, 3 Oct 2018 16:42:38 +0000 (16:42 +0000)
commit2881dec8631629cf1fa415a1f63b8561590df275
tree4a497a6c5547ec53fcee5884f298e5f8a4650fd7
parent5bdd55831e65ffd7bb0122bf31a6c07ef8f5138a
sock api: fix registrations and client reads

- When clients connect, instead of returing registration indicies return
handles. By convention socket registrations will have the MSB set to 1.
This makes it easy to distinguish them from shm registrations.
- Fix client reads to allow for messages larger than 4kB (needed for the
creat reply wherein the message table is provided).

Change-Id: I7bc0a072d066dffbf2e3ad9ba3ed50291231af9d
Signed-off-by: Florin Coras <fcoras@cisco.com>
src/vlibmemory/api.h
src/vlibmemory/socket_api.c
src/vlibmemory/socket_api.h
src/vlibmemory/socket_client.c
src/vlibmemory/socket_client.h