Qsmtp  0.30dev
libowfatconn.h
Go to the documentation of this file.
1 
4 #ifndef QSMTP_LIBOWFAT_H
5 #define QSMTP_LIBOWFAT_H
6 
7 #include <sys/types.h>
8 
9 struct in6_addr;
10 
11 extern int dnsip4(char **out, size_t *len, const char *host) __attribute__ ((nonnull (1,2,3)));
12 extern int dnsip6(char **out, size_t *len, const char *host) __attribute__ ((nonnull (1,2,3)));
13 extern int dnstxt(char **, const char *) __attribute__ ((nonnull (1,2)));
14 extern int dnsmx(char **out, size_t *len, const char *host) __attribute__ ((nonnull (1,2,3)));
15 extern int dnsname(char **, const struct in6_addr *) __attribute__ ((nonnull (1,2)));
16 
17 #endif
int dnsmx(char **out, size_t *len, const char *host)
query DNS for MX entries
Definition: libowfatconn.c:109
int dnsip4(char **out, size_t *len, const char *host)
query DNS for IPv4 address of host
Definition: libowfatconn.c:89
int dnsname(char **, const struct in6_addr *)
query DNS for name for a given IP address
Definition: libowfatconn.c:160
int dnstxt(char **, const char *)
query DNS for TXT entries
Definition: libowfatconn.c:128
int dnsip6(char **out, size_t *len, const char *host)
query DNS for IPv6 address of host
Definition: libowfatconn.c:63