Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

µC/DNSc run-time configuration is based on a structure that contains different configuration sections with many parameter settings. This section describes the instance configuration settings, and should provide you an in-depth understanding of all parameters configuration. You will also discover which settings to modify in order to enhance the functionalities and the performances. Refer to the configuration field description section for further details.

 

Code Block
languagecpp
const  DNSc_CFG  DNSc_Cfg = {
    /* ---------------- MEMORY ALLOCATION ---------------- */
    DEF_NULL,                       /* .MemSegPtr          */
 
    /* ----------------- DEFAULT SERVER ------------------ */
   "8.8.8.8",                       /* .ServerDfltPtr      */
 
    /* --------------- CACHE CONFIGURATION --------------- */
    255,                            /* .HostNameLenMax     */
    2,                              /* .CacheEntriesMaxNbr */
    1,                              /* .AddrIPv4MaxPerHost */
    1,                              /* .AddrIPv6MaxPerHost */
 
    /* -------------- REQUEST CONFIGURATION -------------- */
    DNSc_DFLT_TASK_DLY_MS,          /* .TaskDly_ms         */
    DNSc_DFLT_REQ_RETRY_NBR_MAX,    /* .ReqRetryNbrMax     */
    DNSc_DFLT_REQ_RETRY_TIMEOUT_MS, /* .ReqRetryTimeout_ms */
};

 

Memory allocation configuration

...