]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
curl/websockets.h: extend the websocket frame struct
authorDaniel Stenberg <daniel@haxx.se>
Wed, 8 Feb 2023 22:02:50 +0000 (23:02 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 10 Feb 2023 07:28:58 +0000 (08:28 +0100)
include/curl/websockets.h

index d7387a1aec1f1da1c7b477e24676ab00451c5e47..fd6a916547ddbf1bad9f6f0a849ef4f828d61f42 100644 (file)
@@ -33,6 +33,7 @@ struct curl_ws_frame {
   int flags;            /* See the CURLWS_* defines */
   curl_off_t offset;    /* the offset of this data into the frame */
   curl_off_t bytesleft; /* number of pending bytes left of the payload */
+  size_t len;           /* size of the current data chunk */
 };
 
 /* flag bits */