res_nclose()--Close Socket and Reset _res Structure
Syntax
#include <sys/types.h> #include <netinet/in.h> #include <arpa/nameser.h> #include <resolv.h> void res_nclose(state* res)
Service Program Name: QSOSRV2
Default Public Authority: *USE
Threadsafe: Yes
The res_nclose() function is similar to res_close() but it uses a user-declared res pointer instead of the shared _res.
For a description of this function and more information on the parameters, authorities required, return values, error conditions, error messages, usage notes, and related information, see res_close()--Close Socket and Reset _res Structure.
Parameters
- res
- (Input) The pointer to the state structure.
Related Information
- res_close()--Close Socket and Reset _res
Structure
- res_findzonecut()--Find the Enclosing Zone and
Servers
- res_hostalias()--Retrieve the host alias
- res_ninit()--Initialize res Structure
- res_nmkquery()--Place Domain Query in
Buffer
- res_nquery()--Send Domain Query
- res_nsearch()--Search for Domain Name
- res_nsend()--Send Buffered Domain Query
- res_xlate()--Translate DNS Packets
API introduced: V5R1