libowfat/dns/dns_txt_packet.3

16 lines
582 B
Groff
Raw Normal View History

2002-09-17 01:24:08 +00:00
.TH dns_txt_packet 3
.SH NAME
dns_txt_packet \- extract TXT records from DNS answer packet
.SH SYNTAX
.B #include <libowfat/dns.h>
2002-09-17 01:24:08 +00:00
int \fBdns_txt_packet\fP(stralloc* \fIout\fR,const char* \fIbuf\fR,
unsigned int \fIlen\fR);
.SH DESCRIPTION
2004-09-17 13:51:35 +00:00
dns_txt_packet is a low-level component of dns_txt, designed to support
2002-09-17 01:24:08 +00:00
asynchronous DNS lookups. It reads a DNS packet of length \fIlen\fR from \fIbuf\fR,
extracts the TXT records from the answer section of the packet, puts the
2004-09-17 13:51:35 +00:00
result into \fIout\fR, and returns 0 or -1 the same way as dns_txt.
2002-09-17 01:24:08 +00:00
.SH "SEE ALSO"
2004-09-17 13:51:35 +00:00
dns_txt(3)