Functions
ext-DNS Context: library context handling

Functions

void ext_dns_ctx_black_list (extDnsCtx *ctx, const char *source_address, axl_bool is_permanent, int seconds)
 Allows to black list the provided source_address, causing the extDNS engine to drop all requests receveived from that source. More...
 
void ext_dns_ctx_free (extDnsCtx *ctx)
 Releases the memory allocated by the provided extDnsCtx. More...
 
void ext_dns_ctx_free2 (extDnsCtx *ctx, const char *who)
 Releases the memory allocated by the provided extDnsCtx. More...
 
axlPointer ext_dns_ctx_get_data (extDnsCtx *ctx, const char *key)
 Allows to retreive data stored on the given context (ext_dns_ctx_set_data) using the provided index key. More...
 
axl_bool ext_dns_ctx_is_black_listed (extDnsCtx *ctx, const char *source_address, axl_bool refresh_record)
 Allows to check if the provided source address is already blacklisted on the provided context. More...
 
extDnsCtxext_dns_ctx_new (void)
 Creates an uninitialized ext-DNS context. More...
 
void ext_dns_ctx_ref (extDnsCtx *ctx)
 Allows to increase reference count to the extDnsCtx instance. More...
 
void ext_dns_ctx_ref2 (extDnsCtx *ctx, const char *who)
 Allows to increase reference count to the extDnsCtx instance. More...
 
int ext_dns_ctx_ref_count (extDnsCtx *ctx)
 Allows to get current reference counting state from provided ext_dns context. More...
 
void ext_dns_ctx_set_data (extDnsCtx *ctx, const char *key, axlPointer value)
 Allows to store arbitrary data associated to the provided context, which can later retrieved using a particular key. More...
 
void ext_dns_ctx_set_data_full (extDnsCtx *ctx, const char *key, axlPointer value, axlDestroyFunc key_destroy, axlDestroyFunc value_destroy)
 Allows to store arbitrary data associated to the provided context, which can later retrieved using a particular key. More...
 
void ext_dns_ctx_set_on_message (extDnsCtx *ctx, extDnsOnMessageReceived on_dns_message, axlPointer data)
 Allows to configure the onMessage handler, the callback that is called every time a new message is received over the provided ctx. More...
 
void ext_dns_ctx_unlock (extDnsCtx *ctx)
 Unlock the thread blocked at the ext_dns_ctx_wait. More...
 
void ext_dns_ctx_unref (extDnsCtx **ctx)
 Decrease reference count and nullify caller's pointer in the case the count reaches 0. More...
 
void ext_dns_ctx_unref2 (extDnsCtx **ctx, const char *who)
 Decrease reference count and nullify caller's pointer in the case the count reaches 0. More...
 
void ext_dns_ctx_wait (extDnsCtx *ctx)
 Blocks the caller until the provided ext-dns context is finished. More...
 

Detailed Description