aboutsummaryrefslogtreecommitdiffstats
path: root/src/websock.h
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-04-26 22:00:58 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2016-04-26 22:00:58 +0200
commit8dff3447cea6df8ab727d9615cd07b3774ccffa0 (patch)
treea77a69f6f70e30b51ef25652ce4162dd32d06ac3 /src/websock.h
parent8790ecfe8b83354a5d761c8a4312b561abd2c110 (diff)
Improves websock API
Change-Id: I4c812382751c244e016041af53380e79ac63edd4 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/websock.h')
-rw-r--r--src/websock.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/websock.h b/src/websock.h
index dbb3b022..82e251c1 100644
--- a/src/websock.h
+++ b/src/websock.h
@@ -60,8 +60,12 @@ int websock_error(struct websock *ws, uint16_t code, const void *data, size_t le
int websock_ping(struct websock *ws, const void *data, size_t length);
int websock_pong(struct websock *ws, const void *data, size_t length);
-int websock_text(struct websock *ws, int last, const char *text, size_t length);
+int websock_text(struct websock *ws, int last, const void *text, size_t length);
+int websock_text_v(struct websock *ws, int last, const struct iovec *iovec, int count);
int websock_binary(struct websock *ws, int last, const void *data, size_t length);
+int websock_binary_v(struct websock *ws, int last, const struct iovec *iovec, int count);
+int websock_continue(struct websock *ws, int last, const void *data, size_t length);
+int websock_continue_v(struct websock *ws, int last, const struct iovec *iovec, int count);
ssize_t websock_read(struct websock *ws, void *buffer, size_t size);
int websock_drop(struct websock *ws);