cancel
Showing results for 
Search instead for 
Did you mean: 

Using Select() to get non blocking Tcp recv()?

Jens1
Associate

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

1 REPLY 1
Piranha
Chief II

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.