summaryrefslogtreecommitdiff
path: root/libsoup/soup-websocket-connection.h
diff options
context:
space:
mode:
authorIgnacio Casal Quinteiro <icq@gnome.org>2016-08-17 09:17:49 +0200
committerIgnacio Casal Quinteiro <icq@gnome.org>2016-08-25 15:30:50 +0200
commitd94b56e16e6237a138db2455fadd2ca08809c404 (patch)
tree5877bfd1c222b3e452ebbf73e476ff36660ed95f /libsoup/soup-websocket-connection.h
parent3f6cbd5714cf8d6f8fa33c08182ac840de0f4705 (diff)
downloadlibsoup-wip/payload-size-3-20.tar.gz
Add max-incoming-payload-size property to the websocket connection.wip/payload-size-3-20
This allows to change the limit for the payload of websocket packets. Also add the corresponding unit test. https://bugzilla.gnome.org/show_bug.cgi?id=770022
Diffstat (limited to 'libsoup/soup-websocket-connection.h')
-rw-r--r--libsoup/soup-websocket-connection.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libsoup/soup-websocket-connection.h b/libsoup/soup-websocket-connection.h
index 515961b6..9d72e13d 100644
--- a/libsoup/soup-websocket-connection.h
+++ b/libsoup/soup-websocket-connection.h
@@ -105,6 +105,13 @@ void soup_websocket_connection_close (SoupWebsocketConne
gushort code,
const char *data);
+SOUP_AVAILABLE_IN_2_56
+guint64 soup_websocket_connection_get_max_incoming_payload_size (SoupWebsocketConnection *self);
+
+SOUP_AVAILABLE_IN_2_56
+void soup_websocket_connection_set_max_incoming_payload_size (SoupWebsocketConnection *self,
+ guint64 max_incoming_payload_size);
+
G_END_DECLS
#endif /* __SOUP_WEBSOCKET_CONNECTION_H__ */