summaryrefslogtreecommitdiffstats
path: root/src/websock.h
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-10-23 14:12:08 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-10-23 14:12:08 +0200
commit425026b352cec3980d111bdc30e8dcc77c117ee0 (patch)
treeeb7c792457a8ec83b66785d8db8a10951b6b7a3e /src/websock.h
parent45088e9f96c9889089d7b0eca810d89a2b3d7374 (diff)
websocket: Add function that explain error codes
Change-Id: I500520edac6792013650fa3cb0e02d0b9f5610d5 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/websock.h')
-rw-r--r--src/websock.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/websock.h b/src/websock.h
index 3be89dfe..27acedcd 100644
--- a/src/websock.h
+++ b/src/websock.h
@@ -77,3 +77,5 @@ extern void websock_destroy(struct websock *ws);
extern void websock_set_default_max_length(size_t maxlen);
extern void websock_set_max_length(struct websock *ws, size_t maxlen);
+
+extern const char *websocket_explain_error(uint16_t code);