I have a socket open and communicating with a PC. I disconnect the cable, I mean physically unplug it. On the console I see this message:
Link Status: No Link on PHY 0
so, apparently the NDK stack 'knows' that the cable is disconnected. The error returned by send() is EWOULDBLOCK, indicating a timeout occurred. Shouldn't it close the socket or return a "not connected" error? The PC side is closing the connection, but mine never closes which is a problem. I can't close the socket on a timeout, as these occur all the time (when the host has nothing to send).
C6748
BIOS 5.41.10.36
NDK 2.20.3.24