afb-proto-ws: Change the protocol WSAPI 58/23158/1
authorJose Bollo <jose.bollo@iot.bzh>
Fri, 15 Nov 2019 13:41:40 +0000 (14:41 +0100)
committerJosé Bollo <jose.bollo@iot.bzh>
Fri, 29 Nov 2019 11:48:17 +0000 (12:48 +0100)
commit7386e1c5090b4e76036bc212f2a2cf32920bb160
treeb4343277a870d9ba89fec11be7772f91e25dd7fe
parentb55f3cd48507105e85894be89557787eccfbe22f
afb-proto-ws: Change the protocol WSAPI

Change internals of the protocol WSAPI for the following
rationale:

 1. Enforce specific declaration and transmission of session
    identifiers and of access tokens.
 2. Lower the size of identifiers to be 16 bits.
 3. Introduce protocol versionning through a mechanism of offer/set.

The main purpose of that change is to optimize the count of data
transmitted. It manages as best as possible the transmission of
access tokens the less possible times. Same for sessions that
the chage was transmitted at each call.

Bug-AGL: SPEC-2968

Change-Id: If0a22b86627ead35a410e51c1028025c5b02c38f
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
src/afb-proto-ws.c
src/afb-proto-ws.h
src/afb-stub-ws.c
src/main-afb-client-demo.c