As lwip_netconn_do_gethostbyname requires more arguments but doesn't require a netconn, it has its own struct (to avoid struct api_msg getting bigger than necessary).
lwip_netconn_do_gethostbyname must be called using tcpip_callback instead of tcpip_apimsg (see netconn_gethostbyname).
#include <api_msg.h>
Public Member Functions | |
ip_addr_t | API_MSG_M_DEF (addr) |
Rhe resolved address is stored here. More... | |
sys_sem_t | API_MSG_M_DEF (sem) |
This semaphore is posted when the name is resolved, the application thread should wait on it. More... | |
err_t | API_MSG_M_DEF (err) |
Errors are given back here. More... | |
Data Fields | |
const char * | name |
Hostname to query or dotted IP address string. More... | |
ip_addr_t dns_api_msg::API_MSG_M_DEF | ( | addr | ) |
Rhe resolved address is stored here.
sys_sem_t dns_api_msg::API_MSG_M_DEF | ( | sem | ) |
This semaphore is posted when the name is resolved, the application thread should wait on it.
err_t dns_api_msg::API_MSG_M_DEF | ( | err | ) |
Errors are given back here.
const char* dns_api_msg::name |
Hostname to query or dotted IP address string.
Referenced by lwip_netconn_do_gethostbyname().