firedns_getresult(3)

NAME
firedns_getresult - Retrieve a result from a previous FireDNS query

SYNOPSIS
#include <firedns.h>
-lfiredns

char *firedns_getresult(const int fd)

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_getip6() - (struct in6_addr *)
firedns_gettxt() - (char *)
firedns_getmx() - (char *)
firedns_getname4() - (char *)
firedns_getname6() - (char *)

AUTHOR
Ian Gulliver <ian@penguinhosting.net>

SEE ALSO
libfiredns(3), firedns_getip4(3), firedns_getip6(3), firedns_gettxt(3), firedns_getmx(3), firedns_getname4(3), firedns_getname6(3)