aboutsummaryrefslogtreecommitdiffstats
path: root/src/afb-ws-client.c
AgeCommit message (Collapse)AuthorFilesLines
2020-01-08Update copyright datesJosé Bollo1-1/+1
Signed-off-by: José Bollo <jose.bollo@iot.bzh> Change-Id: I01a566a693b8ec6239209c9323ae4ff15a07f737
2020-01-07afb-ws-client: Improve direct URIJose Bollo1-2/+5
The direct connection URI was expecting a slash after the port for "tcp:" URI. This slash is not needed because it does not carry any meaning. This change implements the ability to set or not the path of URI. Bug-AGL: SPEC-3094 Change-Id: I3d4c350f4e917759cbf82ccc0d261aa420f6f88a Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2019-02-06Update copyright datehalibut_7.90.0halibut/7.90.07.90.0José Bollo1-1/+1
Change-Id: I3aaa92b2bfb01699ee8ae609272e93032b6f1a9d Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-08-02afb-socket: Separate socket creationJosé Bollo1-0/+1
The objective is to have a well identified and possibly reusable internally. Change-Id: Icdb6ce7d85ae26373cfe4f0b492fe97b74ed747c Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-06-13Fixed spellingSebastien Douheret1-2/+2
Change-Id: Id7c183face3179a3b9cec7ed128e3a2561d9f3ad Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-02-27Update date of copyright noticesJosé Bollo1-1/+1
Change-Id: If9d7e7728df086fbb7214f1de5cbec35cd2f1d9b Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-02-22fdev: Introduce fdev for file event handlingJosé Bollo1-9/+16
This is an effort to keep cutting dependency to systemd. Change-Id: I9a0c032a1095e297c7f3ac5b67827fda3658b8d9 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-10-11libafbwsc: add function 'afb_ws_client_connect_api'José Bollo1-0/+120
This function allows to connect to an API exported by the binder. The demo program afb-client-demo is modified to integrate on option that direct API connection. Example: server: afb-daemon --ws-server unix:hello client: afb-client-demo -d -H unix:hello Change-Id: Id9f857a453c406df1c4b36eb25fb5e833a938c3d Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-01-03Adds 2017 to copyrightsJosé Bollo1-1/+1
Change-Id: Id85c4eb4e36a05b61346004ba95daa19faf5074f Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-08-08cleanup of unused variablesJosé Bollo1-8/+0
Change-Id: I895901fb5af2811d79a96aa0baa7981a5c9f9b3a Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-07-27Expose use of the event loopJosé Bollo1-15/+2
The use of the event loop where previously hidden in internal deep places of the websocket modules. This commits enforce the client of the library to explicitely tell what event loop must be used. This has 3 effects: - you know that the systemd event loop is used - you tell the event loop to use (no confusion) - you don't depend on afb-common.c Change-Id: Id13d8a96f981183c299cde414d9bb0cd77fe3daa Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-07-12afb-client-demo/afb-ws: remove dependency on afb-common.*Stephane Desneux1-2/+14
afb-common.* files are not public and so not distributed in any development package. This makes difficult to create a client with sources out-of-tree. Change-Id: Ib2edd48f864f55821ab590442efdf6d1e2fdcd58 Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
2016-05-18favor new names at entry for token and uuidJosé Bollo1-11/+9
Change-Id: I62f9d4df7c83bf8d96ed9d89d4ab4b57146e6bb1 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-18fix bug in websocket clientJosé Bollo1-1/+4
Change-Id: I45c44f31c02ac81dc41127fe35024a57b8d4be33 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-13cleaning copyrightsJosé Bollo1-1/+1
Change-Id: I4ff7349b1a87f92a7d9f378c715054061f06df57 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-13example of integration with websocket in CJosé Bollo1-15/+26
The file src/afb-client-demo.c provides an example of how to make a simple C client that connects to the daemon using the websocket protocol x-afb-json1. Change-Id: I31c926b2c42101a53e1ea36b4f67f095614db4a0 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-12websocket client libraryJosé Bollo1-0/+397
This introduce 2 files for creating client of websockets x-afb-json1: - afb-wsj1.c - afb-ws-client.c The file afb-wsj1.c implements the protocol x-afb-json1 on top of afb-ws.c. It could be used to rewrite afb-ws-json1. The file afb-ws-client.c implements a light version of the websocket handshaking to open a afb-wsj1 based on an uri. Change-Id: Ie53a3b4ff91a9efac32b667b57f8005266db6001 Signed-off-by: José Bollo <jose.bollo@iot.bzh>