Asterisk - The Open Source Telephony Project GIT-master-0bf3178
Data Fields
curl_optional_data Struct Reference

#include <curl_utils.h>

Data Fields

curl_opensocket_callback curl_open_socket_cb
 
void * curl_open_socket_data
 
size_t per_write_buffer_size
 
const char * user_agent
 

Detailed Description

Definition at line 392 of file curl_utils.h.

Field Documentation

◆ curl_open_socket_cb

curl_opensocket_callback curl_open_socket_cb

Set this to a custom function that has a matching prototype, set it to ast_curl_open_socket_default_cb to use the default callback, or leave it at NULL to not use any callback.

Note
Will not be called if open_socket_data is NULL.

Definition at line 410 of file curl_utils.h.

◆ curl_open_socket_data

Set this to whatever your curl_open_socket_cb needs. If using ast_curl_open_socket_default_cb, this MUST be set to an ast_curl_open_socket_data structure. If set to NULL, curl_open_socket_cb will not be called.

Definition at line 417 of file curl_utils.h.

◆ per_write_buffer_size

size_t per_write_buffer_size

Set this to limit the amount of data in each call to ast_curl_write_cb_t.

Definition at line 402 of file curl_utils.h.

◆ user_agent

const char* user_agent

If not set, AST_CURL_USER_AGENT (defined in asterisk.h) will be used.

Definition at line 397 of file curl_utils.h.


The documentation for this struct was generated from the following file: