GNUnet  0.10.x
Macros | Typedefs | Enumerations | Functions
gnunet_transport_hello_service.h File Reference
#include "gnunet_util_lib.h"
#include "gnunet_ats_service.h"
Include dependency graph for gnunet_transport_hello_service.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GNUNET_TRANSPORT_HELLO_VERSION   0x00000000
 Version number of the transport API. More...
 

Typedefs

typedef void(* GNUNET_TRANSPORT_HelloUpdateCallback) (void *cls, const struct GNUNET_MessageHeader *hello)
 Function called whenever there is an update to the HELLO of this peer. More...
 
typedef void(* GNUNET_TRANSPORT_AddressCallback) (void *cls, const struct GNUNET_PeerIdentity *peer, const char *address, enum GNUNET_NetworkType nt, struct GNUNET_TIME_Absolute expiration)
 Function with addresses found in a HELLO. More...
 

Enumerations

enum  GNUNET_TRANSPORT_AddressClass {
  GNUNET_TRANSPORT_AC_NONE = 0, GNUNET_TRANSPORT_AC_OTHER = 1, GNUNET_TRANSPORT_AC_GLOBAL = 2, GNUNET_TRANSPORT_AC_GLOBAL_PRIVATE = 4,
  GNUNET_TRANSPORT_AC_LAN = 8, GNUNET_TRANSPORT_AC_WLAN = 16, GNUNET_TRANSPORT_AC_BT = 32, GNUNET_TRANSPORT_AC_ANY = 65535
}
 Some addresses contain sensitive information or are not suitable for global distribution. More...
 

Functions

struct GNUNET_TRANSPORT_HelloGetHandleGNUNET_TRANSPORT_hello_get (const struct GNUNET_CONFIGURATION_Handle *cfg, enum GNUNET_TRANSPORT_AddressClass ac, GNUNET_TRANSPORT_HelloUpdateCallback rec, void *rec_cls)
 Obtain updates on changes to the HELLO message for this peer. More...
 
void GNUNET_TRANSPORT_hello_get_cancel (struct GNUNET_TRANSPORT_HelloGetHandle *ghh)
 Stop receiving updates about changes to our HELLO message. More...
 
int GNUNET_TRANSPORT_hello_parse (const struct GNUNET_MessageHeader *hello, GNUNET_TRANSPORT_AddressCallback cb, void *cb_cls)
 Parse a HELLO message that we have received into its constituent addresses. More...
 

Detailed Description

Author
Christian Grothoff

obtain information about our current address

Deprecated:
, in TNG applications should query PEERSTORE directly!

Definition in file gnunet_transport_hello_service.h.