Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: mbed-TFT-example-NCS36510 mbed-Accelerometer-example-NCS36510 mbed-Accelerometer-example-NCS36510
dns_api_msg Struct Reference
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). More...
#include <api_msg.h>
Public Member Functions | |
ip_addr_t | API_MSG_M_DEF (addr) |
The resolved address is stored here. | |
sys_sem_t | API_MSG_M_DEF_SEM (sem) |
This semaphore is posted when the name is resolved, the application thread should wait on it. | |
err_t | API_MSG_M_DEF (err) |
Errors are given back here. | |
Data Fields | |
char | name [DNS_MAX_NAME_LENGTH] |
Hostname to query or dotted IP address string. | |
const char * | name |
Hostname to query or dotted IP address string. | |
u8_t | dns_addrtype |
Type of resolve call. | |
ip_addr_t * | addr |
Rhe resolved address is stored here. | |
sys_sem_t * | sem |
This semaphore is posted when the name is resolved, the application thread should wait on it. | |
err_t * | err |
Errors are given back here. |
Detailed Description
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).
As 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).
do_gethostbyname must be called using tcpip_callback instead of tcpip_apimsg (see netconn_gethostbyname).
Definition at line 160 of file FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/priv/api_msg.h.
Member Function Documentation
sys_sem_t API_MSG_M_DEF_SEM | ( | sem | ) |
This semaphore is posted when the name is resolved, the application thread should wait on it.
Field Documentation
Rhe resolved address is stored here.
Definition at line 136 of file unsupported/net/lwip/lwip/include/lwip/api_msg.h.
u8_t dns_addrtype |
Type of resolve call.
Definition at line 171 of file FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/priv/api_msg.h.
Errors are given back here.
Definition at line 141 of file unsupported/net/lwip/lwip/include/lwip/api_msg.h.
const char* name |
Hostname to query or dotted IP address string.
Definition at line 165 of file FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/priv/api_msg.h.
const char * name |
Hostname to query or dotted IP address string.
Definition at line 163 of file FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/priv/api_msg.h.
sys_sem_t* sem |
This semaphore is posted when the name is resolved, the application thread should wait on it.
Definition at line 139 of file unsupported/net/lwip/lwip/include/lwip/api_msg.h.
Generated on Tue Jul 12 2022 11:03:17 by
