Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CurlFile.cpp File Reference
#include "CurlFile.h"
#include "File.h"
#include "ServiceBroker.h"
#include "URL.h"
#include "filesystem/SpecialProtocol.h"
#include "network/DNSNameCache.h"
#include "settings/AdvancedSettings.h"
#include "settings/Settings.h"
#include "settings/SettingsComponent.h"
#include "threads/SystemClock.h"
#include "utils/Base64.h"
#include "utils/XTimeUtils.h"
#include <algorithm>
#include <cassert>
#include <climits>
#include <vector>
#include "DllLibCurl.h"
#include "ShoutcastFile.h"
#include "utils/CharsetConverter.h"
#include "utils/log.h"
#include "utils/StringUtils.h"

Macros

#define FITS_INT(a)
 
#define FILLBUFFER_OK   0
 
#define FILLBUFFER_NO_DATA   1
 
#define FILLBUFFER_FAIL   2
 

Functions

int debug_callback (CURL_HANDLE *handle, curl_infotype info, char *output, size_t size, void *data)
 
size_t write_callback (char *buffer, size_t size, size_t nitems, void *userp)
 
size_t read_callback (char *buffer, size_t size, size_t nitems, void *userp)
 
size_t header_callback (void *ptr, size_t size, size_t nmemb, void *stream)
 
int transfer_abort_callback (void *clientp, curl_off_t dltotal, curl_off_t dlnow, curl_off_t ultotal, curl_off_t ulnow)
 

Variables

curl_proxytype proxyType2CUrlProxyType []
 

Macro Definition Documentation

◆ FILLBUFFER_FAIL

#define FILLBUFFER_FAIL   2

◆ FILLBUFFER_NO_DATA

#define FILLBUFFER_NO_DATA   1

◆ FILLBUFFER_OK

#define FILLBUFFER_OK   0

◆ FITS_INT

#define FITS_INT ( a)
Value:
(((a) <= INT_MAX) && ((a) >= INT_MIN))

Function Documentation

◆ debug_callback()

int debug_callback ( CURL_HANDLE * handle,
curl_infotype info,
char * output,
size_t size,
void * data )

◆ header_callback()

size_t header_callback ( void * ptr,
size_t size,
size_t nmemb,
void * stream )

◆ read_callback()

size_t read_callback ( char * buffer,
size_t size,
size_t nitems,
void * userp )

◆ transfer_abort_callback()

int transfer_abort_callback ( void * clientp,
curl_off_t dltotal,
curl_off_t dlnow,
curl_off_t ultotal,
curl_off_t ulnow )

◆ write_callback()

size_t write_callback ( char * buffer,
size_t size,
size_t nitems,
void * userp )

Variable Documentation

◆ proxyType2CUrlProxyType

curl_proxytype proxyType2CUrlProxyType[]
Initial value:
= {
CURLPROXY_HTTP, CURLPROXY_SOCKS4, CURLPROXY_SOCKS4A,
CURLPROXY_SOCKS5, CURLPROXY_SOCKS5_HOSTNAME, CURLPROXY_HTTPS,
}