Using Select() to get non blocking Tcp recv()?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-01-22 11:07 AM
Anyone already used select() function together with a timeout? I like only to call the Tcp recv() function when data are in the receive buffer.
I have a Nucleo F429Zi.
With best regards,
Jens
Labels:
- Labels:
-
STM32F4 Series
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-01-25 1:04 PM
Are you talking about lwIP stack?
Socket API is built on top of Netconn and is the worst one. Netconn is better, but it seems that it has the same limitations regarding timeouts. Of course one can use 1 ms timeout, but... The most flexible and effective option is to use RAW API with callbacks and just forget those old-school broken designs with select() and whatnot.
