GNUnet  0.20.0
GNUNET_HELLO_Address Struct Reference

An address for communicating with a peer. More...

#include <gnunet_hello_lib.h>

Collaboration diagram for GNUNET_HELLO_Address:
[legend]

Data Fields

struct GNUNET_PeerIdentity peer
 For which peer is this an address? More...
 
const char * transport_name
 Name of the transport plugin enabling the communication using this address. More...
 
const void * address
 Binary representation of the address (plugin-specific). More...
 
size_t address_length
 Number of bytes in address. More...
 
enum GNUNET_HELLO_AddressInfo local_info
 Extended information about address. More...
 

Detailed Description

An address for communicating with a peer.

We frequently need this tuple and the components cannot really be separated. This is NOT the format that would be used on the wire.

Definition at line 93 of file gnunet_hello_lib.h.

Field Documentation

◆ peer

◆ transport_name

◆ address

◆ address_length

◆ local_info

enum GNUNET_HELLO_AddressInfo GNUNET_HELLO_Address::local_info

Extended information about address.

This field contains additional GNUNET_HELLO_AddressInfo flags e.g. to indicate an address is inbound and cannot be used to initiate an outbound connection.

These information are only valid for the local peer and are not serialized when a GNUNET_HELLO_Message is created

Definition at line 114 of file gnunet_hello_lib.h.

Referenced by GNUNET_HELLO_address_allocate(), GNUNET_HELLO_address_cmp(), handle_event(), and send_add_address_message().


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