Dear all, What is the best way to handle the following situation when using netconn in TCPIP mode and v2.0.0RC1.
If I connect (with netconn_connect() ) to a device that's not available and netconn is blocking how long do I have to wait? Because it's unknown to me and it could take very long I decided to use the "netconn_set_nonblocking(conn, 1)" so I can delete the connection if it takes to long to connect. But when the device is available I cannot use the netconn_write() (the function returns ERR_VAL). In the command it says: /* This implies netconn_write() cannot be used for non-blocking send, since it has no way to return the number of bytes written. */ How can I use netconn_write() in a non-blocking situation? -- View this message in context: http://lwip.100.n7.nabble.com/Netconn-write-and-non-blocking-tp26792.html Sent from the lwip-users mailing list archive at Nabble.com. _______________________________________________ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users