firedns_getresult(3)

firedns_getresult3

Retrieve a result from a previous firedns query

Usage

#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)

Overview

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 *)

Releases

Unchanged in 2 releases since Debian 3.1 (Sarge).

  1. 3.1–4.0

Author

Ian Gulliver <[email protected]>

From libfiredns-dev 0.9.12+dfsg-1 in Debian 4.0 (Etch). Parsed by carta from the page's man source.