firedns_getname4(3)

NAME

firedns_getname4 - Create a query to resolve an IPv4 ad
dress to a hostname

SYNOPSIS

#include <firedns.h>
-lfiredns
int firedns_getname4(const struct in_addr *ip)

DESCRIPTION

firedns_getname4() creates and sends a request to resolve
the IPv4 address ip to a hostname. It returns a file descriptor
that should be select(2)'ed upon (read set). When the file de
scriptor shows ready for reading call firedns_getresult(3) to re
trieve the results.

RETURN VALUE

Returns an integer file descriptor that can be used the
same as any other file descriptor. Returns -1 on error.

AUTHOR

Ian Gulliver <ian@penguinhosting.net>

SEE ALSO

libfiredns(3), firedns_getresult(3), select(2)
2002-03-31
Copyright © 2010-2025 Platon Technologies, s.r.o.           Home | Man pages | tLDP | Documents | Utilities | About
Design by styleshout