GNUnet 0.22.0
gnunet_regex_service.h File Reference

API to access regex service to advertise capabilities via regex and discover respective peers using matching strings. More...

#include "gnunet_util_lib.h"
Include dependency graph for gnunet_regex_service.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GNUNET_REGEX_INITIAL_BYTES   24
 Constant for how many bytes the initial string regex should have. More...
 

Typedefs

typedef void(* GNUNET_REGEX_Found) (void *cls, const struct GNUNET_PeerIdentity *id, const struct GNUNET_PeerIdentity *get_path, unsigned int get_path_length, const struct GNUNET_PeerIdentity *put_path, unsigned int put_path_length)
 Search callback function, invoked for every result that was found. More...
 

Functions

struct GNUNET_REGEX_AnnouncementGNUNET_REGEX_announce (const struct GNUNET_CONFIGURATION_Handle *cfg, const char *regex, struct GNUNET_TIME_Relative refresh_delay, uint16_t compression)
 Announce this peer under the given regular expression. More...
 
void GNUNET_REGEX_announce_cancel (struct GNUNET_REGEX_Announcement *a)
 Stop announcing the regex specified by the given handle. More...
 
struct GNUNET_REGEX_SearchGNUNET_REGEX_search (const struct GNUNET_CONFIGURATION_Handle *cfg, const char *string, GNUNET_REGEX_Found callback, void *callback_cls)
 Search for a peer offering a regex matching certain string in the DHT. More...
 
void GNUNET_REGEX_search_cancel (struct GNUNET_REGEX_Search *s)
 Stop search and free all data used by a GNUNET_REGEX_search call. More...
 

Detailed Description

API to access regex service to advertise capabilities via regex and discover respective peers using matching strings.

Definition in file gnunet_regex_service.h.