Macros | Functions | Variables
lib1900.c File Reference
#include "test.h"
#include "testutil.h"
#include "warnless.h"
#include "memdebug.h"
Include dependency graph for lib1900.c:

Go to the source code of this file.

Macros

#define MAX_BLACKLIST   20
 
#define MAX_URLS   200
 
#define TEST_HANG_TIMEOUT   60 * 1000
 

Functions

static int create_handles (void)
 
static void free_urls (void)
 
static int parse_url_file (const char *filename)
 
static void remove_handles (void)
 
static void setup_handle (char *base_url, CURLM *m, int handlenum)
 
int test (char *URL)
 
static size_t write_callback (void *contents, size_t size, size_t nmemb, void *userp)
 

Variables

static int blacklist_num_servers
 
static int blacklist_num_sites
 
static CURLhandles [MAX_URLS]
 
static int num_handles
 
static char * server_blacklist [MAX_BLACKLIST]
 
static char * site_blacklist [MAX_BLACKLIST]
 
static char * urlstring [MAX_URLS]
 
static int urltime [MAX_URLS]
 

Macro Definition Documentation

◆ MAX_BLACKLIST

#define MAX_BLACKLIST   20

Definition at line 30 of file lib1900.c.

◆ MAX_URLS

#define MAX_URLS   200

Definition at line 29 of file lib1900.c.

◆ TEST_HANG_TIMEOUT

#define TEST_HANG_TIMEOUT   60 * 1000

Definition at line 28 of file lib1900.c.

Function Documentation

◆ create_handles()

static int create_handles ( void  )
static

Definition at line 102 of file lib1900.c.

◆ free_urls()

static void free_urls ( void  )
static

Definition at line 88 of file lib1900.c.

◆ parse_url_file()

static int parse_url_file ( const char *  filename)
static

Definition at line 51 of file lib1900.c.

◆ remove_handles()

static void remove_handles ( void  )
static

Definition at line 125 of file lib1900.c.

◆ setup_handle()

static void setup_handle ( char *  base_url,
CURLM m,
int  handlenum 
)
static

Definition at line 112 of file lib1900.c.

◆ test()

int test ( char *  URL)

Definition at line 135 of file lib1900.c.

◆ write_callback()

static size_t write_callback ( void *  contents,
size_t  size,
size_t  nmemb,
void *  userp 
)
static

Definition at line 42 of file lib1900.c.

Variable Documentation

◆ blacklist_num_servers

int blacklist_num_servers
static

Definition at line 38 of file lib1900.c.

◆ blacklist_num_sites

int blacklist_num_sites
static

Definition at line 39 of file lib1900.c.

◆ handles

CURL* handles[MAX_URLS]
static

Definition at line 34 of file lib1900.c.

◆ num_handles

int num_handles
static

Definition at line 37 of file lib1900.c.

◆ server_blacklist

char* server_blacklist[MAX_BLACKLIST]
static

Definition at line 36 of file lib1900.c.

◆ site_blacklist

char* site_blacklist[MAX_BLACKLIST]
static

Definition at line 35 of file lib1900.c.

◆ urlstring

char* urlstring[MAX_URLS]
static

Definition at line 33 of file lib1900.c.

◆ urltime

int urltime[MAX_URLS]
static

Definition at line 32 of file lib1900.c.



rc_tagdetect_client
Author(s): Monika Florek-Jasinska , Raphael Schaller
autogenerated on Sun May 15 2022 02:25:02