curl_ws_recv(3) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

curl_ws_recv(3)

curl_ws_recv(3)                 libcurl Manual                 curl_ws_recv(3)



NAME
       curl_ws_recv - receive WebSocket data

SYNOPSIS
       #include <curl/easy.h>

       CURLcode curl_ws_recv(CURL *curl, void *buffer, size_t buflen,
                             size_t *recv, struct curl_ws_frame **meta);

DESCRIPTION
       This function call is EXPERIMENTAL.

       Retrieves  as  much  as  possible of a received WebSocket data fragment
       into the buffer, but not more than buflen bytes. recv  is  set  to  the
       number of bytes actually stored.

       If  there  is  more fragment data to deliver than what fits in the pro‐
       vided buffer, libcurl returns a full buffer and the  application  needs
       to call this function again to continue draining the buffer.

       The  meta pointer gets set to point to a struct curl_ws_frame that con‐
       tains information about the received data. See the curl_ws_meta(3)  for
       details on that struct.

EXAMPLE
AVAILABILITY
       Added in 7.86.0.

RETURN VALUE
SEE ALSO
       curl_easy_setopt(3),     curl_easy_perform(3),    curl_easy_getinfo(3),
       curl_ws_send(3)



libcurl 7.86.0                 October 03, 2022                curl_ws_recv(3)
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3