GNUnet 0.28.1-dev.7-1-g2ce91c818
 
Loading...
Searching...
No Matches
GNUNET_CURL_Job Struct Reference

Jobs are CURL requests running within a struct GNUNET_CURL_Context. More...

Collaboration diagram for GNUNET_CURL_Job:
[legend]

Data Fields

struct GNUNET_CURL_Jobnext
 We keep jobs in a DLL.
 
struct GNUNET_CURL_Jobprev
 We keep jobs in a DLL.
 
CURL * easy_handle
 Easy handle of the job.
 
struct GNUNET_CURL_Contextctx
 Context this job runs in.
 
GNUNET_CURL_JobCompletionCallback jcc
 Function to call upon completion.
 
void * jcc_cls
 Closure for jcc.
 
GNUNET_CURL_RawJobCompletionCallback jcc_raw
 Function to call upon completion.
 
void * jcc_raw_cls
 Closure for jcc_raw.
 
struct GNUNET_CURL_StreamHandlers sh
 Handlers to use if streaming; otherwise all-NULL.
 
bool streaming
 Is the response delivered to sh as it arrives, rather than accumulated in db? If so db stays empty for the lifetime of the job.
 
struct GNUNET_CURL_DownloadBuffer db
 Buffer for response received from CURL.
 
struct curl_slist * job_headers
 Headers used for this job, the list needs to be freed after the job has finished.
 
struct GNUNET_TIME_Absolute start_time
 When did we start the job?
 

Detailed Description

Jobs are CURL requests running within a struct GNUNET_CURL_Context.

Definition at line 77 of file curl.c.

Field Documentation

◆ next

struct GNUNET_CURL_Job* GNUNET_CURL_Job::next

We keep jobs in a DLL.

Definition at line 82 of file curl.c.

◆ prev

struct GNUNET_CURL_Job* GNUNET_CURL_Job::prev

We keep jobs in a DLL.

Definition at line 87 of file curl.c.

◆ easy_handle

CURL* GNUNET_CURL_Job::easy_handle

Easy handle of the job.

Definition at line 92 of file curl.c.

◆ ctx

struct GNUNET_CURL_Context* GNUNET_CURL_Job::ctx

Context this job runs in.

Definition at line 97 of file curl.c.

◆ jcc

GNUNET_CURL_JobCompletionCallback GNUNET_CURL_Job::jcc

Function to call upon completion.

Definition at line 102 of file curl.c.

Referenced by GNUNET_CURL_job_add().

◆ jcc_cls

void* GNUNET_CURL_Job::jcc_cls

Closure for jcc.

Definition at line 107 of file curl.c.

Referenced by GNUNET_CURL_job_add().

◆ jcc_raw

GNUNET_CURL_RawJobCompletionCallback GNUNET_CURL_Job::jcc_raw

Function to call upon completion.

Definition at line 112 of file curl.c.

◆ jcc_raw_cls

void* GNUNET_CURL_Job::jcc_raw_cls

Closure for jcc_raw.

Definition at line 117 of file curl.c.

◆ sh

struct GNUNET_CURL_StreamHandlers GNUNET_CURL_Job::sh

Handlers to use if streaming; otherwise all-NULL.

Definition at line 122 of file curl.c.

◆ streaming

bool GNUNET_CURL_Job::streaming

Is the response delivered to sh as it arrives, rather than accumulated in db? If so db stays empty for the lifetime of the job.

Definition at line 129 of file curl.c.

◆ db

struct GNUNET_CURL_DownloadBuffer GNUNET_CURL_Job::db

Buffer for response received from CURL.

Definition at line 134 of file curl.c.

◆ job_headers

struct curl_slist* GNUNET_CURL_Job::job_headers

Headers used for this job, the list needs to be freed after the job has finished.

Definition at line 140 of file curl.c.

◆ start_time

struct GNUNET_TIME_Absolute GNUNET_CURL_Job::start_time

When did we start the job?

Definition at line 145 of file curl.c.


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