API to access regex service to advertise capabilities via regex and discover respective peers using matching strings. More...
#include "gnunet_util_lib.h"
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_Announcement * | GNUNET_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_Search * | GNUNET_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... | |
void | GNUNET_REGEX_ipv4toregexsearch (const struct in_addr *ip, uint16_t port, char *rxstr) |
Create a regex in rxstr from the given ip and port. More... | |
void | GNUNET_REGEX_ipv6toregexsearch (const struct in6_addr *ipv6, uint16_t port, char *rxstr) |
Create a regex in rxstr from the given ipv6 and port. More... | |
char * | GNUNET_REGEX_ipv6policy2regex (const char *policy) |
Convert an exit policy to a regular expression. More... | |
char * | GNUNET_REGEX_ipv4policy2regex (const char *policy) |
Convert an exit policy to a regular expression. More... | |
API to access regex service to advertise capabilities via regex and discover respective peers using matching strings.
Definition in file gnunet_regex_service.h.