main-afb-client-demo: Exit with a significant code 83/15783/2
authorJosé Bollo <jose.bollo@iot.bzh>
Thu, 26 Jul 2018 13:55:09 +0000 (15:55 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Thu, 26 Jul 2018 14:10:10 +0000 (16:10 +0200)
commit61b54ddf86a2afd583c3d4b082365eff759b8f17
tree0dd542e3281ee3e06d36188e98862dd6f3810542
parent635772bd8cf7ad5c4f4caff441e2809e7b8de16a
main-afb-client-demo: Exit with a significant code

The program afb-client-demo now exits whith one of the
following code:

 0 - everything went well, no error
 1 - last received answer was an error
 2 - the remote hung up the connection
 3 - stdin either has too long line (16384) or has error
 4 - bad argument of the command line
 5 - cant connect to remote

Bug-AGL: SPEC-1619

Change-Id: Ia979c9ddcdae496ce205882b895cd9742f93f365
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/main-afb-client-demo.c