DNSc_Init

Initializes the DNSc module.

Files

dns-c.h/dns-c.c

Prototype

void  DNSc_Init (const  DNSc_CFG       *p_cfg,
                 const  DNSc_CFG_TASK  *p_task_cfg,
                        DNSc_ERR       *p_err);

Arguments

p_cfg               Pointer to the run-time configuration. See Run-time Configuration for further information.

p_task_cfg      Pointer to the task configuration if asynchonous mode is enabled, DEF_NULL otherwise. See Task configuration for more information.

p_err               Pointer to variable that will receive the return error code from this function.

Returned Values

None.

Required Configuration

Run-time Configuration

Task configuration

Notes / Warnings

This function must be called prior to using other DNS client functions.

Example Usage

See Sample Application.