summaryrefslogtreecommitdiffstats
path: root/src/afb-ws.h
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-05-12 22:50:35 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2016-05-12 22:50:35 +0200
commit7b97a7f27578d7f4ce7cc994e5df303ac5d9c886 (patch)
tree327277b7af9e21b28fcbc2292f17a6338b33d28f /src/afb-ws.h
parent3e775a79aa6ea82f93b2fc03f58ad261a17c73ca (diff)
websocket client library
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>
Diffstat (limited to 'src/afb-ws.h')
-rw-r--r--src/afb-ws.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/afb-ws.h b/src/afb-ws.h
index 1ef61ad8..48df9e4f 100644
--- a/src/afb-ws.h
+++ b/src/afb-ws.h
@@ -34,5 +34,6 @@ extern void afb_ws_hangup(struct afb_ws *ws);
extern int afb_ws_close(struct afb_ws *ws, uint16_t code, const char *reason);
extern int afb_ws_error(struct afb_ws *ws, uint16_t code, const char *reason);
extern int afb_ws_text(struct afb_ws *ws, const char *text, size_t length);
+extern int afb_ws_texts(struct afb_ws *ws, ...);
extern int afb_ws_binary(struct afb_ws *ws, const void *data, size_t length);