Some quick code to use UDP-only (no TCP) with mBed. Echos received packets and sends packets when a button is pressed
dns_api_msg Struct Reference
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). More...
#include <api_msg.h>
Data Fields | |
const char * | name |
Hostname to query or dotted IP address string. | |
struct ip_addr * | 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 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).
do_gethostbyname must be called using tcpip_callback instead of tcpip_apimsg (see netconn_gethostbyname).
Definition at line 121 of file api_msg.h.
Field Documentation
const char* name |
Generated on Tue Jul 12 2022 19:17:24 by 1.7.2