tfDnsDomainSearchRemove

Jump to: navigation, search

Table of Contents >> Application Reference >> DNS Resolver


#include <trsocket.h>


int tfDnsDomainSearchRemove (const char TM_FAR * domainNamePtr);


Function Description

Remove a domain that was previously added via tfDnsDomainSearchAdd(). If domainNamePtr is not found in the list of user-supplied domains, TM_ENOERROR is returned.

The Treck domain search feature must be enabled by uncommenting the following compile time macro in your trsystem.h.

#define TM_USE_DNS_DOMAIN_SEARCH


Parameters

  • domainNamePtr
    Pointer to the ASCII domain to remove.


Returns

  • TM_ENOERROR
    Success (domainNamePtr was removed or was not found in the list).
  • TM_EINVAL
    Invalid domain.
  • TM_EPERM
    tfDnsInit() has not yet been called.
  • TM_ENOBUFS
    Insufficient memory.


Table of Contents >> Application Reference >> DNS Resolver