Skip to main content

esp_http_client_get_socket

Function esp_http_client_get_socket 

Source
pub unsafe extern "C" fn esp_http_client_get_socket(
    client: esp_http_client_handle_t,
) -> c_int
Expand description

@brief Get the socket from the underlying transport

@param client The HTTP client handle

@return - -1 if the client is NULL or the transport is not initialized - The socket file descriptor if successful