GNUnet  0.18.1
PeerInfo Struct Reference

Entry for a peer in a bucket. More...

Collaboration diagram for PeerInfo:
[legend]

Data Fields

struct GNUNET_PeerIdentity id
 What is the identity of the peer? More...
 
struct GNUNET_HashCode phash
 Hash of id. More...
 
struct GNUNET_TIME_Absolute hello_expiration
 When does our HELLO from this peer expire? More...
 
struct PeerInfonext
 Next peer entry (DLL) More...
 
struct PeerInfoprev
 Prev peer entry (DLL) More...
 
struct Targett_head
 Head of DLL of targets for this peer. More...
 
struct Targett_tail
 Tail of DLL of targets for this peer. More...
 
void * hello
 Block with a HELLO of this peer. More...
 
size_t hello_size
 Number of bytes in hello. More...
 
int peer_bucket
 Which bucket is this peer in? More...
 

Detailed Description

Entry for a peer in a bucket.

Definition at line 331 of file gnunet-service-dht_neighbours.c.

Field Documentation

◆ id

struct GNUNET_PeerIdentity PeerInfo::id

What is the identity of the peer?

Definition at line 323 of file gnunet-service-dht_neighbours.c.

Referenced by select_peer(), and gnunet_testing.Peer::start().

◆ phash

struct GNUNET_HashCode PeerInfo::phash

Hash of id.

Definition at line 323 of file gnunet-service-dht_neighbours.c.

Referenced by get_target_peers(), and select_peer().

◆ hello_expiration

struct GNUNET_TIME_Absolute PeerInfo::hello_expiration

When does our HELLO from this peer expire?

Definition at line 323 of file gnunet-service-dht_neighbours.c.

◆ next

struct PeerInfo* PeerInfo::next

Next peer entry (DLL)

Definition at line 351 of file gnunet-service-dht_neighbours.c.

Referenced by GDS_NEIGHBOURS_broadcast(), select_peer(), and update_hold().

◆ prev

struct PeerInfo* PeerInfo::prev

Prev peer entry (DLL)

Definition at line 356 of file gnunet-service-dht_neighbours.c.

◆ t_head

struct Target* PeerInfo::t_head

Head of DLL of targets for this peer.

Definition at line 361 of file gnunet-service-dht_neighbours.c.

◆ t_tail

struct Target* PeerInfo::t_tail

Tail of DLL of targets for this peer.

Definition at line 366 of file gnunet-service-dht_neighbours.c.

◆ hello

void* PeerInfo::hello

Block with a HELLO of this peer.

Definition at line 371 of file gnunet-service-dht_neighbours.c.

Referenced by handle_dht_p2p_hello().

◆ hello_size

size_t PeerInfo::hello_size

Number of bytes in hello.

Definition at line 376 of file gnunet-service-dht_neighbours.c.

◆ peer_bucket

int PeerInfo::peer_bucket

Which bucket is this peer in?

Definition at line 381 of file gnunet-service-dht_neighbours.c.


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