BSB Developer Docs
Loading...
Searching...
No Matches
mongoose_dns.h File Reference

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.
 

Detailed Description

Mongoose DNS Configuration manager.

Takes DNS server configuration from lwIP and forwards it to mongoose

Function Documentation

◆ mongoose_dns_deinit()

void mongoose_dns_deinit ( struct mg_mgr * mgr)

Cleans up all internal data that this helper modified.

Parameters
[in,out]mgrMongoose manager instance

◆ mongoose_dns_init()

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.

Warning
Call mongoose_dns_deinit() before mg_mgr_free().
Parameters
[in,out]mgrMongoose manager instance