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.
Fork of OmniWheels by
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. | |
u8_t | dns_addrtype |
Type of resolve call. |
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).
lwip_netconn_do_gethostbyname must be called using tcpip_callback instead of tcpip_apimsg (see netconn_gethostbyname).
Definition at line 159 of file api_msg.h.
Member Function Documentation
ip_addr_t API_MSG_M_DEF | ( | addr | ) |
The resolved address is stored here.
err_t API_MSG_M_DEF | ( | err | ) |
Errors are given back 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.
Field Documentation
u8_t dns_addrtype |
Generated on Fri Jul 22 2022 04:54:12 by
