GNUnet 0.21.1
DownloadRequest Struct Reference

Information about an active download request. More...

#include </home/buildbot/bb-worker/worker/gnunet_firefly/build/src/service/fs/fs_api.h>

Collaboration diagram for DownloadRequest:
[legend]

Data Fields

struct DownloadRequestparent
 Parent in the CHK-tree. More...
 
struct DownloadRequest ** children
 Array (!) of child-requests, or NULL for the bottom of the tree. More...
 
struct ContentHashKey chk
 CHK for the request for this block (set during reconstruction to what we have on disk, later to what we want to have). More...
 
uint64_t offset
 Offset of the corresponding block. More...
 
unsigned int num_children
 Number of entries in children array. More...
 
unsigned int depth
 Depth of the corresponding block in the tree. More...
 
unsigned int chk_idx
 Offset of the CHK for this block in the parent block. More...
 
enum BlockRequestState state
 State in the FSM. More...
 

Detailed Description

Information about an active download request.

Definition at line 1675 of file fs_api.h.

Field Documentation

◆ parent

struct DownloadRequest* DownloadRequest::parent

◆ children

◆ chk

struct ContentHashKey DownloadRequest::chk

CHK for the request for this block (set during reconstruction to what we have on disk, later to what we want to have).

Definition at line 1691 of file fs_api.h.

Referenced by GNUNET_FS_download_start_task_(), process_result_with_request(), read_download_request(), reconstruct_cb(), retry_entry(), schedule_block_download(), try_match_block(), try_top_down_reconstruction(), and write_download_request().

◆ offset

uint64_t DownloadRequest::offset

Offset of the corresponding block.

Specifically, first (!) byte of the first DBLOCK in the subtree induced by block represented by this request.

Definition at line 1698 of file fs_api.h.

Referenced by create_download_request(), encrypt_existing_match(), process_result_with_request(), read_download_request(), reconstruct_cb(), schedule_block_download(), try_match_block(), try_top_down_reconstruction(), and write_download_request().

◆ num_children

◆ depth

unsigned int DownloadRequest::depth

◆ chk_idx

unsigned int DownloadRequest::chk_idx

Offset of the CHK for this block in the parent block.

Definition at line 1713 of file fs_api.h.

Referenced by create_download_request(), process_result_with_request(), reconstruct_cb(), and try_top_down_reconstruction().

◆ state


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