diff options
author | Ignacio Casal Quinteiro <icq@gnome.org> | 2016-08-17 09:17:49 +0200 |
---|---|---|
committer | Ignacio Casal Quinteiro <icq@gnome.org> | 2016-08-25 15:30:50 +0200 |
commit | d94b56e16e6237a138db2455fadd2ca08809c404 (patch) | |
tree | 5877bfd1c222b3e452ebbf73e476ff36660ed95f /libsoup/soup-websocket-connection.h | |
parent | 3f6cbd5714cf8d6f8fa33c08182ac840de0f4705 (diff) | |
download | libsoup-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.h | 7 |
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__ */ |