tfDnsInit

Jump to: navigation, search

Table of Contents >> Application Reference >> DNS Resolver


#include <trsocket.h>


int tfDnsInit (int blockingMode);


Function Description

This function initializes the DNS resolver service. This should be called once and only once when the system is started.


Parameters

  • blockingMode
    Specifies whether the resolver should operate in blocking or non-blocking mode (TM_BLOCKING_ON or TM_BLOCKING_OFF).


Returns

  • TM_EINVAL
    The blockingMode was not either TM_BLOCKING_ON or TM_BLOCKING_OFF.
  • TM_EALREADY
    The DNS resolver has already been started.
  • TM_ENOERROR
    The resolver was started successfully.


Table of Contents >> Application Reference >> DNS Resolver