Ethernet for Nucleo and Disco board STM32F746 works with gcc and arm. IAC is untested

Dependents:   STM32F746_iothub_client_sample_mqtt DISCO-F746NG_Ethernet Nucleo_F746ZG_Ethernet thethingsiO-DISCO_F746NG-mqtt ... more

Embed: (wiki syntax)

« Back to documentation index

dns_api_msg Struct Reference

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.
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 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 135 of file api_msg.h.


Field Documentation

ip_addr_t* addr

Rhe resolved address is stored here.

Definition at line 139 of file api_msg.h.

err_t* err

Errors are given back here.

Definition at line 144 of file api_msg.h.

const char* name

Hostname to query or dotted IP address string.

Definition at line 137 of file 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 142 of file api_msg.h.