GNUnet  0.19.4
MergeContext Struct Reference

Closure for merge_pr(). More...

Collaboration diagram for MergeContext:
[legend]

Data Fields

struct GSF_PendingRequestpr
 Request we are trying to merge. More...
 
int merged
 Set to GNUNET_YES if we succeeded to merge. More...
 
const struct GNUNET_HELLO_Messageh1
 First HELLO we are merging. More...
 
const struct GNUNET_HELLO_Messageh2
 Second HELLO we are merging. More...
 
const struct GNUNET_HELLO_Messageother
 Either h1 or h2, used when copying to compare against (so we only copy the most recent entry). More...
 
char * buf
 Buffer where we copy to. More...
 
size_t max
 Number of bytes allocated in buf. More...
 
size_t ret
 Current (write) offset in buf. More...
 
int take_equal
 Should we copy addresses with an identical value and expiration time in other, or do we only copy addresses with strictly later expiration times? More...
 

Detailed Description

Closure for merge_pr().

Context for a #GNUNET_HELLO_Merge operation.

Definition at line 473 of file gnunet-service-fs_pe.c.

Field Documentation

◆ pr

struct GSF_PendingRequest* MergeContext::pr

Request we are trying to merge.

Definition at line 478 of file gnunet-service-fs_pe.c.

Referenced by GSF_plan_add_(), and merge_pr().

◆ merged

int MergeContext::merged

Set to GNUNET_YES if we succeeded to merge.

Definition at line 483 of file gnunet-service-fs_pe.c.

Referenced by GSF_plan_add_(), and merge_pr().

◆ h1

const struct GNUNET_HELLO_Message* MergeContext::h1

First HELLO we are merging.

Definition at line 393 of file hello.c.

Referenced by GNUNET_HELLO_merge().

◆ h2

const struct GNUNET_HELLO_Message* MergeContext::h2

Second HELLO we are merging.

Definition at line 398 of file hello.c.

Referenced by GNUNET_HELLO_merge().

◆ other

const struct GNUNET_HELLO_Message* MergeContext::other

Either h1 or h2, used when copying to compare against (so we only copy the most recent entry).

Definition at line 405 of file hello.c.

◆ buf

char* MergeContext::buf

Buffer where we copy to.

Definition at line 410 of file hello.c.

◆ max

size_t MergeContext::max

Number of bytes allocated in buf.

Definition at line 415 of file hello.c.

◆ ret

size_t MergeContext::ret

Current (write) offset in buf.

Definition at line 420 of file hello.c.

◆ take_equal

int MergeContext::take_equal

Should we copy addresses with an identical value and expiration time in other, or do we only copy addresses with strictly later expiration times?

Definition at line 427 of file hello.c.


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