feat(lwip): Add socket UDP sync function

This commit is contained in:
Dong Heng
2018-07-26 14:28:33 +08:00
parent 8af3aa5ccf
commit cf46ba82be
7 changed files with 277 additions and 0 deletions
components/lwip
Kconfig
lwip/src
port/esp8266

@ -302,6 +302,9 @@ static int8_t low_level_output(struct netif* netif, struct pbuf* p)
* header, meaning we should not pass target low-level address here.
*/
err = esp_aio_sendto(&aio, NULL, 0);
#if ESP_UDP
udp_sync_set_ret(err);
#endif
if (err != ERR_OK) {
if (err == ERR_MEM){
insert_to_list(aio.fd, p);