mirror of
https://github.com/ep00ch/lwip-contrib-mac.git
synced 2024-09-13 12:55:26 +00:00
Removed tabs, added netconn_close().
This commit is contained in:
parent
171676162e
commit
f01fa48eec
@ -64,14 +64,17 @@ tcpecho_thread(void *arg)
|
|||||||
do {
|
do {
|
||||||
netbuf_data(buf, &data, &len);
|
netbuf_data(buf, &data, &len);
|
||||||
err = netconn_write(newconn, data, len, NETCONN_COPY);
|
err = netconn_write(newconn, data, len, NETCONN_COPY);
|
||||||
|
#if 0
|
||||||
if (err != ERR_OK) {
|
if (err != ERR_OK) {
|
||||||
/* printf("tcpecho: netconn_write: error \"%s\"\n", lwip_strerr(err));*/
|
printf("tcpecho: netconn_write: error \"%s\"\n", lwip_strerr(err));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
} while (netbuf_next(buf) >= 0);
|
} while (netbuf_next(buf) >= 0);
|
||||||
netbuf_delete(buf);
|
netbuf_delete(buf);
|
||||||
}
|
}
|
||||||
/*printf("Got EOF, looping\n");*/
|
/*printf("Got EOF, looping\n");*/
|
||||||
/* Close connection and discard connection identifier. */
|
/* Close connection and discard connection identifier. */
|
||||||
|
netconn_close(newconn);
|
||||||
netconn_delete(newconn);
|
netconn_delete(newconn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user