mongoose/docs/c-api/mg_dns.h/mg_dns_insert_header.md

14 lines
299 B
Markdown
Raw Normal View History

---
title: "mg_dns_insert_header()"
decl_name: "mg_dns_insert_header"
symbol_kind: "func"
signature: |
int mg_dns_insert_header(struct mbuf *io, size_t pos,
struct mg_dns_message *msg);
---
Inserts a DNS header to an IO buffer.
Returns the number of bytes inserted.