Struct used to keep track of other peer's status. More...
Data Fields | |
struct Sub * | sub |
The Sub this context belongs to. More... | |
struct GNUNET_MQ_Handle * | mq |
Message queue open to client. More... | |
struct ChannelCtx * | send_channel_ctx |
Channel open to client. More... | |
struct ChannelCtx * | recv_channel_ctx |
Channel open from client. More... | |
struct PeerPendingOp * | pending_ops |
Array of pending operations on this peer. More... | |
struct PendingMessage * | online_check_pending |
Handle to the callback given to cadet_ntfy_tmt_rdy() More... | |
unsigned int | num_pending_ops |
Number of pending operations. More... | |
struct GNUNET_PeerIdentity | peer_id |
Identity of the peer. More... | |
uint32_t | peer_flags |
Flags indicating status of peer. More... | |
struct GNUNET_TIME_Absolute | last_message_recv |
Last time we received something from that peer. More... | |
struct GNUNET_TIME_Absolute | last_keepalive |
Last time we received a keepalive message. More... | |
struct PendingMessage * | pending_messages_head |
DLL with all messages that are yet to be sent. More... | |
struct PendingMessage * | pending_messages_tail |
uint32_t | round_pull_req |
This is pobably followed by 'statistical' data (when we first saw it, how did we get its ID, how many pushes (in a timeinterval), ...) More... | |
Struct used to keep track of other peer's status.
This is stored in a multipeermap. It contains information such as cadet channels, a message queue for sending, status about the channels, the pending operations on this peer and some flags about the status of the peer itself. (online, valid, ...)
Definition at line 151 of file gnunet-service-rps.c.
struct Sub* PeerContext::sub |
The Sub this context belongs to.
Definition at line 156 of file gnunet-service-rps.c.
Referenced by check_connected(), check_peer_online(), check_peer_pull_reply(), check_removable(), check_sending_channel_exists(), check_sending_channel_needed(), cleanup_destroyed_channel(), create_or_get_peer_ctx(), create_peer_ctx(), destroy_peer(), destroy_sending_channel(), get_channel(), handle_inbound_channel(), handle_peer_check(), handle_peer_pull_reply(), handle_peer_pull_request(), handle_peer_push(), indicate_sending_intention(), insert_in_view(), issue_peer_online_check(), mq_notify_sent_cb(), mq_online_check_successful(), schedule_operation(), send_pull_reply(), send_pull_request(), and send_push().
struct GNUNET_MQ_Handle* PeerContext::mq |
Message queue open to client.
Definition at line 161 of file gnunet-service-rps.c.
Referenced by destroy_peer(), get_mq(), and remove_channel_ctx().
struct ChannelCtx* PeerContext::send_channel_ctx |
Channel open to client.
Definition at line 166 of file gnunet-service-rps.c.
Referenced by check_connected(), check_sending_channel_exists(), cleanup_destroyed_channel(), destroy_peer(), destroy_sending_channel(), get_channel(), and remove_channel_ctx().
struct ChannelCtx* PeerContext::recv_channel_ctx |
Channel open from client.
Definition at line 171 of file gnunet-service-rps.c.
Referenced by check_connected(), check_peer_send_intention(), check_removable(), destroy_peer(), handle_inbound_channel(), and remove_channel_ctx().
struct PeerPendingOp* PeerContext::pending_ops |
Array of pending operations on this peer.
Definition at line 176 of file gnunet-service-rps.c.
Referenced by check_operation_scheduled(), destroy_peer(), schedule_operation(), and set_peer_online().
struct PendingMessage* PeerContext::online_check_pending |
Handle to the callback given to cadet_ntfy_tmt_rdy()
To be canceled on shutdown.
Definition at line 183 of file gnunet-service-rps.c.
Referenced by check_peer_online(), destroy_peer(), issue_peer_online_check(), mq_online_check_successful(), and set_peer_online().
unsigned int PeerContext::num_pending_ops |
Number of pending operations.
Definition at line 188 of file gnunet-service-rps.c.
Referenced by check_operation_scheduled(), destroy_peer(), schedule_operation(), and set_peer_online().
struct GNUNET_PeerIdentity PeerContext::peer_id |
Identity of the peer.
Definition at line 193 of file gnunet-service-rps.c.
Referenced by check_connected(), check_peer_online(), check_peer_pull_reply(), check_removable(), check_sending_channel_exists(), check_sending_channel_needed(), cleanup_destroyed_channel(), destroy_peer(), destroy_sending_channel(), get_channel(), handle_inbound_channel(), handle_peer_check(), handle_peer_pull_reply(), handle_peer_pull_request(), handle_peer_push(), indicate_sending_intention(), mq_notify_sent_cb(), mq_online_check_successful(), schedule_operation(), send_message(), send_pull_reply(), send_pull_request(), send_push(), and set_peer_online().
uint32_t PeerContext::peer_flags |
Flags indicating status of peer.
Definition at line 198 of file gnunet-service-rps.c.
struct GNUNET_TIME_Absolute PeerContext::last_message_recv |
Last time we received something from that peer.
Definition at line 203 of file gnunet-service-rps.c.
struct GNUNET_TIME_Absolute PeerContext::last_keepalive |
Last time we received a keepalive message.
Definition at line 208 of file gnunet-service-rps.c.
struct PendingMessage* PeerContext::pending_messages_head |
DLL with all messages that are yet to be sent.
Definition at line 213 of file gnunet-service-rps.c.
Referenced by check_removable(), destroy_peer(), insert_pending_message(), and remove_pending_message().
struct PendingMessage* PeerContext::pending_messages_tail |
Definition at line 214 of file gnunet-service-rps.c.
Referenced by insert_pending_message(), and remove_pending_message().
uint32_t PeerContext::round_pull_req |
This is pobably followed by 'statistical' data (when we first saw it, how did we get its ID, how many pushes (in a timeinterval), ...)
Definition at line 221 of file gnunet-service-rps.c.
Referenced by handle_peer_pull_reply(), and send_pull_request().