GNUnet 0.21.1
PeerAddress Struct Reference

Information we track per peer we have recently been in contact with. More...

Collaboration diagram for PeerAddress:
[legend]

Data Fields

struct GNUNET_PeerIdentity target
 To whom are we talking to. More...
 
int id_rcvd
 Flag to indicate whether we know the PeerIdentity (target) yet. More...
 
int id_sent
 Flag to indicate whether we have sent OUR PeerIdentity to this peer. More...
 
int is_receiver
 Flag to indicate if we are the initiator of the connection. More...
 
char * foreign_addr
 Address of the receiver in the human-readable format with the COMMUNICATOR_ADDRESS_PREFIX. More...
 
struct sockaddr * address
 Address of the other peer. More...
 
socklen_t address_len
 Length of the address. More...
 
struct quic_connconn
 The QUIC connection associated with this peer. More...
 
struct GNUNET_MQ_Handled_mq
 Default message queue we are providing for the ch. More...
 
struct GNUNET_TRANSPORT_QueueHandled_qh
 handle for default queue with the ch. More...
 
struct GNUNET_TIME_Absolute timeout
 Timeout for this peer address. More...
 
size_t d_mtu
 MTU we allowed transport for this peer's default queue. More...
 
enum GNUNET_NetworkType nt
 Which network type does this queue use? More...
 
int peer_destroy_called
 receiver_destroy already called on receiver. More...
 

Detailed Description

Information we track per peer we have recently been in contact with.

(Since quiche handles crypto, handshakes, etc. we don't differentiate between SenderAddress and ReceiverAddress) FIXME: But we do a handshake as well. The flag in this struct seems to indicate this. Update comment!

Definition at line 161 of file gnunet-communicator-quic.c.

Field Documentation

◆ target

struct GNUNET_PeerIdentity PeerAddress::target

To whom are we talking to.

Definition at line 166 of file gnunet-communicator-quic.c.

Referenced by mq_error(), mq_init(), peer_destroy(), recv_from_streams(), and setup_peer_mq().

◆ id_rcvd

int PeerAddress::id_rcvd

Flag to indicate whether we know the PeerIdentity (target) yet.

Definition at line 171 of file gnunet-communicator-quic.c.

Referenced by mq_init(), recv_from_streams(), and sock_read().

◆ id_sent

int PeerAddress::id_sent

Flag to indicate whether we have sent OUR PeerIdentity to this peer.

Definition at line 176 of file gnunet-communicator-quic.c.

Referenced by sock_read().

◆ is_receiver

int PeerAddress::is_receiver

Flag to indicate if we are the initiator of the connection.

Definition at line 181 of file gnunet-communicator-quic.c.

Referenced by mq_init(), recv_from_streams(), and sock_read().

◆ foreign_addr

char* PeerAddress::foreign_addr

Address of the receiver in the human-readable format with the COMMUNICATOR_ADDRESS_PREFIX.

Definition at line 187 of file gnunet-communicator-quic.c.

Referenced by mq_init(), peer_destroy(), setup_peer_mq(), and sock_read().

◆ address

struct sockaddr* PeerAddress::address

Address of the other peer.

Definition at line 192 of file gnunet-communicator-quic.c.

Referenced by mq_init(), peer_destroy(), setup_peer_mq(), and sock_read().

◆ address_len

socklen_t PeerAddress::address_len

Length of the address.

Definition at line 197 of file gnunet-communicator-quic.c.

Referenced by mq_init(), peer_destroy(), and sock_read().

◆ conn

struct quic_conn* PeerAddress::conn

The QUIC connection associated with this peer.

Definition at line 202 of file gnunet-communicator-quic.c.

Referenced by mq_init(), mq_send_d(), peer_destroy(), recv_from_streams(), and sock_read().

◆ d_mq

struct GNUNET_MQ_Handle* PeerAddress::d_mq

Default message queue we are providing for the ch.

Definition at line 207 of file gnunet-communicator-quic.c.

Referenced by mq_destroy_d(), mq_send_d(), and setup_peer_mq().

◆ d_qh

struct GNUNET_TRANSPORT_QueueHandle* PeerAddress::d_qh

handle for default queue with the ch.

Definition at line 212 of file gnunet-communicator-quic.c.

Referenced by peer_destroy(), and setup_peer_mq().

◆ timeout

struct GNUNET_TIME_Absolute PeerAddress::timeout

Timeout for this peer address.

Definition at line 217 of file gnunet-communicator-quic.c.

Referenced by mq_init(), and reschedule_peer_timeout().

◆ d_mtu

size_t PeerAddress::d_mtu

MTU we allowed transport for this peer's default queue.

FIXME: MTU from quiche

Definition at line 223 of file gnunet-communicator-quic.c.

Referenced by mq_send_d(), and setup_peer_mq().

◆ nt

enum GNUNET_NetworkType PeerAddress::nt

Which network type does this queue use?

Definition at line 228 of file gnunet-communicator-quic.c.

Referenced by mq_init(), and setup_peer_mq().

◆ peer_destroy_called

int PeerAddress::peer_destroy_called

receiver_destroy already called on receiver.

Definition at line 233 of file gnunet-communicator-quic.c.

Referenced by mq_destroy_d(), mq_send_d(), and peer_destroy().


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