ddc
Macros | Functions | Variables
CCurl.cpp File Reference
#include "CCurl.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
Include dependency graph for CCurl.cpp:

Macros

#define CURL_REDIR_POST_ALL   -1L
 

Functions

CCurlCache ddcCurlCache (ddcCurlCacheCapacity, &ddcCurlMutex)
 
void ddcInitCurl (void)
 global initialization function (multiple calls should be safe) More...
 

Variables

pthread_mutex_t ddcCurlMutex = PTHREAD_MUTEX_INITIALIZER
 global mutex for non-thread-safe curl operations (global init, lru-cached proxy) More...
 
static const int ddcCurlCacheCapacity = 1024
 
int ddcCurlInitialized = 0
 sentinel to determine whether curl_global_init() has been called More...
 

Macro Definition Documentation

◆ CURL_REDIR_POST_ALL

#define CURL_REDIR_POST_ALL   -1L

Referenced by CCurl::redirects().

Function Documentation

◆ ddcCurlCache()

CCurlCache ddcCurlCache ( ddcCurlCacheCapacity  ,
ddcCurlMutex 
)

◆ ddcInitCurl()

void ddcInitCurl ( void  )

global initialization function (multiple calls should be safe)

References DDC_IFPTHREAD, and ddcCurlMutex.

Referenced by CCurl::CCurl(), and ddcInitGlobal().

Here is the caller graph for this function:

Variable Documentation

◆ ddcCurlMutex

pthread_mutex_t ddcCurlMutex = PTHREAD_MUTEX_INITIALIZER

global mutex for non-thread-safe curl operations (global init, lru-cached proxy)

Referenced by ddcInitCurl().

◆ ddcCurlCacheCapacity

const int ddcCurlCacheCapacity = 1024
static

◆ ddcCurlInitialized

int ddcCurlInitialized = 0

sentinel to determine whether curl_global_init() has been called