#include <sys/types.h> #include <netinet/in.h> #include <arpa/nameser.h> #include <resolv.h> int res_nisourserver(state* res, const struct sockaddr_in server)
The res_nisourserver() looks up the specified server address in the ns_addr_list[] of the specified res structure.
No authorization is required.
(0) Server not found in ns_addr_list[].
(>0) Server found in ns_addr_list[].
(<0) Error.
When the res_nisourserver() function returns an error, errno will be set to one of the following:
The system detected a pointer that was invalid while attempting to access an input pointer.
One of the following reasons:
Top | UNIX-Type APIs | APIs by category |