GNUnet 0.22.2
GSF_ConnectedPeer Struct Reference

A connected peer. More...

Collaboration diagram for GSF_ConnectedPeer:
[legend]

Data Fields

struct GSF_PeerPerformanceData ppd
 Performance data for this peer. More...
 
struct GNUNET_TIME_Absolute last_migration_block
 Time until when we blocked this peer from migrating data to us. More...
 
struct GNUNET_SCHEDULER_Taskmig_revive_task
 Task scheduled to revive migration to this peer. More...
 
struct GSF_PeerTransmitHandlepth_head
 Messages (replies, queries, content migration) we would like to send to this peer in the near future. More...
 
struct GSF_PeerTransmitHandlepth_tail
 Messages (replies, queries, content migration) we would like to send to this peer in the near future. More...
 
struct GSF_DelayedHandledelayed_head
 Messages (replies, queries, content migration) we would like to send to this peer in the near future. More...
 
struct GSF_DelayedHandledelayed_tail
 Messages (replies, queries, content migration) we would like to send to this peer in the near future. More...
 
struct GNUNET_SCHEDULER_Taskrc_delay_task
 Task scheduled if we need to retry bandwidth reservation later. More...
 
struct GNUNET_CONTAINER_MultiHashMaprequest_map
 Active requests from this neighbour, map of query to struct PeerRequest. More...
 
struct GNUNET_MQ_Handlemq
 Handle for an active request for transmission to this peer. More...
 
uint64_t inc_preference
 Increase in traffic preference still to be submitted to the core service for this peer. More...
 
unsigned int delay_queue_size
 Number of entries in delayed_head DLL. More...
 
uint32_t disk_respect
 Respect rating for this peer on disk. More...
 
unsigned int last_p2p_replies_woff
 Which offset in last_p2p_replies will be updated next? (we go round-robin). More...
 
unsigned int last_client_replies_woff
 Which offset in last_client_replies will be updated next? (we go round-robin). More...
 
unsigned int last_request_times_off
 Current offset into last_request_times ring buffer. More...
 
struct GNUNET_PEERSTORE_IterateContextrespect_iterate_req
 Handle to the PEERSTORE iterate request for peer respect value. More...
 

Detailed Description

A connected peer.

Definition at line 165 of file gnunet-service-fs_cp.c.

Field Documentation

◆ ppd

◆ last_migration_block

struct GNUNET_TIME_Absolute GSF_ConnectedPeer::last_migration_block

Time until when we blocked this peer from migrating data to us.

Definition at line 176 of file gnunet-service-fs_cp.c.

Referenced by GSF_block_peer_migration_().

◆ mig_revive_task

struct GNUNET_SCHEDULER_Task* GSF_ConnectedPeer::mig_revive_task

Task scheduled to revive migration to this peer.

Definition at line 181 of file gnunet-service-fs_cp.c.

Referenced by GSF_peer_disconnect_handler(), handle_p2p_migration_stop(), and revive_migration().

◆ pth_head

struct GSF_PeerTransmitHandle* GSF_ConnectedPeer::pth_head

Messages (replies, queries, content migration) we would like to send to this peer in the near future.

Sorted by priority, head.

Definition at line 187 of file gnunet-service-fs_cp.c.

Referenced by GSF_peer_disconnect_handler(), GSF_peer_transmit_(), and peer_transmit().

◆ pth_tail

struct GSF_PeerTransmitHandle* GSF_ConnectedPeer::pth_tail

Messages (replies, queries, content migration) we would like to send to this peer in the near future.

Sorted by priority, tail.

Definition at line 193 of file gnunet-service-fs_cp.c.

Referenced by GSF_peer_disconnect_handler(), GSF_peer_transmit_(), and peer_transmit().

◆ delayed_head

struct GSF_DelayedHandle* GSF_ConnectedPeer::delayed_head

Messages (replies, queries, content migration) we would like to send to this peer in the near future.

Sorted by priority, head.

Definition at line 199 of file gnunet-service-fs_cp.c.

Referenced by GSF_peer_disconnect_handler(), handle_p2p_reply(), and transmit_delayed_now().

◆ delayed_tail

struct GSF_DelayedHandle* GSF_ConnectedPeer::delayed_tail

Messages (replies, queries, content migration) we would like to send to this peer in the near future.

Sorted by priority, tail.

Definition at line 205 of file gnunet-service-fs_cp.c.

Referenced by GSF_peer_disconnect_handler(), handle_p2p_reply(), and transmit_delayed_now().

◆ rc_delay_task

struct GNUNET_SCHEDULER_Task* GSF_ConnectedPeer::rc_delay_task

Task scheduled if we need to retry bandwidth reservation later.

Definition at line 210 of file gnunet-service-fs_cp.c.

◆ request_map

struct GNUNET_CONTAINER_MultiHashMap* GSF_ConnectedPeer::request_map

Active requests from this neighbour, map of query to struct PeerRequest.

Definition at line 215 of file gnunet-service-fs_cp.c.

Referenced by free_pending_request(), GSF_peer_connect_handler(), GSF_peer_disconnect_handler(), and handle_p2p_get().

◆ mq

struct GNUNET_MQ_Handle* GSF_ConnectedPeer::mq

Handle for an active request for transmission to this peer.

Definition at line 221 of file gnunet-service-fs_cp.c.

Referenced by GSF_peer_connect_handler(), handle_p2p_get(), and peer_transmit().

◆ inc_preference

uint64_t GSF_ConnectedPeer::inc_preference

Increase in traffic preference still to be submitted to the core service for this peer.

Definition at line 227 of file gnunet-service-fs_cp.c.

Referenced by GSF_connected_peer_change_preference_().

◆ delay_queue_size

unsigned int GSF_ConnectedPeer::delay_queue_size

Number of entries in delayed_head DLL.

Definition at line 232 of file gnunet-service-fs_cp.c.

Referenced by GSF_peer_disconnect_handler(), handle_p2p_get(), handle_p2p_reply(), and transmit_delayed_now().

◆ disk_respect

uint32_t GSF_ConnectedPeer::disk_respect

Respect rating for this peer on disk.

Definition at line 237 of file gnunet-service-fs_cp.c.

Referenced by flush_respect(), and peer_respect_cb().

◆ last_p2p_replies_woff

unsigned int GSF_ConnectedPeer::last_p2p_replies_woff

Which offset in last_p2p_replies will be updated next? (we go round-robin).

Definition at line 243 of file gnunet-service-fs_cp.c.

Referenced by GSF_peer_update_responder_peer_().

◆ last_client_replies_woff

unsigned int GSF_ConnectedPeer::last_client_replies_woff

Which offset in last_client_replies will be updated next? (we go round-robin).

Definition at line 249 of file gnunet-service-fs_cp.c.

Referenced by GSF_peer_update_responder_client_().

◆ last_request_times_off

unsigned int GSF_ConnectedPeer::last_request_times_off

Current offset into last_request_times ring buffer.

Definition at line 254 of file gnunet-service-fs_cp.c.

Referenced by peer_transmit().

◆ respect_iterate_req

struct GNUNET_PEERSTORE_IterateContext* GSF_ConnectedPeer::respect_iterate_req

Handle to the PEERSTORE iterate request for peer respect value.

Definition at line 259 of file gnunet-service-fs_cp.c.

Referenced by GSF_peer_connect_handler(), GSF_peer_disconnect_handler(), handle_p2p_migration_stop(), and peer_respect_cb().


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