4 int main(int argc, char *argv[]) {
8 p = flx_dns_packet_new(8000);
10 flx_dns_packet_append_name(p, "hello.hello.hello.de.");
11 flx_dns_packet_append_name(p, "this is a test.hello.de.");
12 flx_dns_packet_append_name(p, "this\\.is\\.a\\.test\\.with\\.dots.hello.de.");
13 flx_dns_packet_append_name(p, "this\\\\is another\\ \\test.hello.de.");
15 flx_hexdump(FLX_DNS_PACKET_DATA(p), p->size);
17 flx_dns_packet_consume_name(p, t, sizeof(t));
19 flx_dns_packet_consume_name(p, t, sizeof(t));
21 flx_dns_packet_consume_name(p, t, sizeof(t));
23 flx_dns_packet_consume_name(p, t, sizeof(t));
27 flx_dns_packet_free(p);