MeterLogger
Functions
captdns.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void ICACHE_FLASH_ATTR captdnsInit (void)
 
void ICACHE_FLASH_ATTR captdnsStop (void)
 

Function Documentation

◆ captdnsInit()

void ICACHE_FLASH_ATTR captdnsInit ( void  )

Definition at line 344 of file captdns.c.

References captdnsRecv(), espconn_create(), espconn_regist_recvcb(), ESPCONN_UDP, _esp_udp::local_port, espconn::proto, espconn::type, and espconn::udp.

Referenced by captdnsRecv().

344  {
345  static esp_udp udpconn;
347  conn.proto.udp=&udpconn;
348  conn.proto.udp->local_port = 53;
351 }
esp_udp * udp
Definition: espconn.h:106
sint8 espconn_regist_recvcb(struct espconn *espconn, espconn_recv_callback recv_cb)
Definition: espconn.c:770
int local_port
Definition: espconn.h:83
static struct espconn conn
Definition: captdns.c:50
union espconn::@1 proto
enum espconn_type type
Definition: espconn.h:101
static void ICACHE_FLASH_ATTR captdnsRecv(void *arg, char *pusrdata, unsigned short length)
Definition: captdns.c:192
sint8 espconn_create(struct espconn *espconn)
Definition: espconn.c:334
Here is the call graph for this function:
Here is the caller graph for this function:

◆ captdnsStop()

void ICACHE_FLASH_ATTR captdnsStop ( void  )

Definition at line 353 of file captdns.c.

References espconn_delete().

353  {
355 }
static struct espconn conn
Definition: captdns.c:50
sint8 espconn_delete(struct espconn *espconn)
Definition: espconn.c:1217
Here is the call graph for this function: