diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2025-12-04 14:58:45 +0100 |
|---|---|---|
| committer | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2025-12-04 14:58:45 +0100 |
| commit | 6ef91e26588fb3985eaa521c86d2ce2dcb2eabf1 (patch) | |
| tree | 67b98dc117f6d799f3ac8fb2b8cdedf8a1226051 /vendor/curl/c/websockets.h | |
| parent | be943e97576e844e2e38ba3dc1d2741052fc254d (diff) | |
Update curl bindings to 8.17dev-2025-12a
Diffstat (limited to 'vendor/curl/c/websockets.h')
| -rw-r--r-- | vendor/curl/c/websockets.h | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/vendor/curl/c/websockets.h b/vendor/curl/c/websockets.h index afb86b4eb..df8590f39 100644 --- a/vendor/curl/c/websockets.h +++ b/vendor/curl/c/websockets.h @@ -24,7 +24,7 @@ * ***************************************************************************/ -#ifdef __cplusplus +#ifdef __cplusplus extern "C" { #endif @@ -72,13 +72,26 @@ CURL_EXTERN CURLcode curl_ws_send(CURL *curl, const void *buffer, curl_off_t fragsize, unsigned int flags); +/* + * NAME curl_ws_start_frame() + * + * DESCRIPTION + * + * Buffers a websocket frame header with the given flags and length. + * Errors when a previous frame is not complete, e.g. not all its + * payload has been added. + */ +CURL_EXTERN CURLcode curl_ws_start_frame(CURL *curl, + unsigned int flags, + curl_off_t frame_len); + /* bits for the CURLOPT_WS_OPTIONS bitmask: */ -#define CURLWS_RAW_MODE (1<<0) -#define CURLWS_NOAUTOPONG (1<<1) +#define CURLWS_RAW_MODE (1L<<0) +#define CURLWS_NOAUTOPONG (1L<<1) CURL_EXTERN const struct curl_ws_frame *curl_ws_meta(CURL *curl); -#ifdef __cplusplus +#ifdef __cplusplus } #endif |