Function esp_idf_svc::hal::sys::httpd_ws_send_frame_async
source ยท pub unsafe extern "C" fn httpd_ws_send_frame_async(
hd: *mut c_void,
fd: i32,
frame: *mut httpd_ws_frame,
) -> i32
Expand description
@brief Low level send of a WebSocket frame out of the scope of current request using internally configured httpd send function
This API should rarely be called directly, with an exception of asynchronous send using httpd_queue_work.
@param[in] hd Server instance data @param[in] fd Socket descriptor for sending data @param[in] frame WebSocket frame @return
- ESP_OK : On successful
- ESP_FAIL : When socket errors occurs
- ESP_ERR_INVALID_STATE : Handshake was already done beforehand
- ESP_ERR_INVALID_ARG : Argument is invalid (null or non-WebSocket)