man firedns_getresult (Fonctions bibliothèques) - Retrieve a result from a previous FireDNS query

NAME

firedns_getresult - Retrieve a result from a previous FireDNS query

SYNOPSIS

#include <firedns.h>

-lfiredns

char *firedns_getresult(const int fd)

char *firedns_getresult_r(const int fd)

char *firedns_getresult_s(const int fd, char *result)

DESCRIPTION

firedns_getresult() returns the result for the request identified by the file descriptor fd. It returns NULL if there has been no response to the request or the response indicates failure.

RETURN VALUE

Returns NULL on failure, or a pointer to the result. The return value is meant to be cast depending upon the initial request made. Casts:

firedns_getip4() - (struct in_addr *)

firedns_getip4list() - (struct firedns_ip4list *) /* linked list */

firedns_getip6() - (struct in6_addr *)

firedns_getip6list() - (struct firedns_ip6list *) /* linked list */

firedns_gettxt() - (char *)

firedns_gettxtlist() - (struct firedns_txtlist *) /* linked list */

firedns_getmx() - (char *)

firedns_getmxlist() - (struct firedns_mxlist *) /* linked list */

firedns_getname4() - (char *)

firedns_getname6() - (char *)

firedns_getcname() - (char *)

AUTHOR

Ian Gulliver <ian@penguinhosting.net>

SEE ALSO