Defines | Functions | Variables
threaded-ssl.c File Reference
#include <stdio.h>
#include <pthread.h>
#include <curl/curl.h>
#include <openssl/crypto.h>
Include dependency graph for threaded-ssl.c:

Go to the source code of this file.

Defines

#define NUMT   4
#define USE_OPENSSL   /* or USE_GNUTLS accordingly */

Functions

static void init_locks (void)
static void kill_locks (void)
static void lock_callback (int mode, int type, char *file, int line)
int main (int argc, char **argv)
static void * pull_one_url (void *url)
static unsigned long thread_id (void)

Variables

static pthread_mutex_t * lockarray
const char *const urls []

Define Documentation

#define NUMT   4

Definition at line 43 of file threaded-ssl.c.

#define USE_OPENSSL   /* or USE_GNUTLS accordingly */

Definition at line 37 of file threaded-ssl.c.


Function Documentation

static void init_locks ( void  ) [static]

Definition at line 70 of file threaded-ssl.c.

static void kill_locks ( void  ) [static]

Definition at line 84 of file threaded-ssl.c.

static void lock_callback ( int  mode,
int  type,
char *  file,
int  line 
) [static]

Definition at line 50 of file threaded-ssl.c.

int main ( int  argc,
char **  argv 
)

Definition at line 134 of file threaded-ssl.c.

static void* pull_one_url ( void *  url) [static]

Definition at line 118 of file threaded-ssl.c.

static unsigned long thread_id ( void  ) [static]

Definition at line 62 of file threaded-ssl.c.


Variable Documentation

pthread_mutex_t* lockarray [static]

Definition at line 46 of file threaded-ssl.c.

const char* const urls[]
Initial value:
 {
  "https://www.example.com/",
  "https://www2.example.com/",
  "https://www3.example.com/",
  "https://www4.example.com/",
}

Definition at line 111 of file threaded-ssl.c.



rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:09