Jan Menzel:
Whats the correct way to close a socket/netconn TCP connection without
loosing any data in send window?
The correct way for (standard) sockets is to enable LINGER mode and call
close() (read up on what linger is via google). Linger is supported by
lwIP sockets, but unfortunately, there's no API for netconn. However,
you can (for now) just change 'netconn->linger' to the number of seconds
you want to wait.
I'm using an OS and version 1.4.1.
Unfortunately, 1.4.1 doesn't support linger.
Simon
_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users