![]() |
BSB Developer Docs
|
Mongoose DNS Configuration manager. More...
#include <mongoose.h>Go to the source code of this file.
Functions | |
| void | mongoose_dns_init (struct mg_mgr *mgr) |
| Applies DNS configuration from Wi-Fi (static or acquired via DHCP) to a Mongoose manager object. | |
| void | mongoose_dns_deinit (struct mg_mgr *mgr) |
| Cleans up all internal data that this helper modified. | |
Mongoose DNS Configuration manager.
Takes DNS server configuration from lwIP and forwards it to mongoose
| void mongoose_dns_deinit | ( | struct mg_mgr * | mgr | ) |
Cleans up all internal data that this helper modified.
| [in,out] | mgr | Mongoose manager instance |
| void mongoose_dns_init | ( | struct mg_mgr * | mgr | ) |
Applies DNS configuration from Wi-Fi (static or acquired via DHCP) to a Mongoose manager object.
If it's not configured or not available yet, the default DNS server is used (Google's 8.8.8.8).
All DNS queries made with this manager will use the new DNS server after this function returns.
mongoose_dns_deinit() before mg_mgr_free().| [in,out] | mgr | Mongoose manager instance |