IPv6 related refactoring

This commit is contained in:
cpq committed 2020-12-20 16:55:33 +00:00
1 parent d7abd53062
commit 29534218d7
11 files changed
+193 -89

No files matched your search

+2 -1
View File
@@ -5,10 +5,11 @@
struct mg_dns_message {
uint16_t txnid; // Transaction ID
bool resolved; // Resolve successful, ipaddr is set
uint32_t ipaddr; // Resolved IPv4 address
char name[256]; // Host name
};
void mg_resolve(struct mg_mgr *, struct mg_connection *, struct mg_str *, int);
void mg_resolve_cancel(struct mg_mgr *, struct mg_connection *);
int mg_dns_parse(const uint8_t *buf, size_t len, struct mg_dns_message *);
bool mg_dns_parse(const uint8_t *buf, size_t len, struct mg_dns_message *);