Hello,
One of my customers is trying to establish the reason for socket closure. Looking at the APIs, there does not seem to be a straightforward way to do this. Can you give me any pointers? They also don't want to create a socket with no timeout.
I don’t to create a socket with no timeout. I simply want to be able to determine if a socket has been closed due to the socket inactivity timeout. This would be useful for the Basic WiFi Demo where there is a UART interface. If the user waits too long to send or receive data, the socket could timeout. Currently, the only way to know is to attempt to send or receive data and wait for that to timeout. If there was an event that was generated when the socket was closed, that could be used to inform the user the socket has been closed before they attempt to send or receive data. This would be useful in our application because we could check the socket to make sure it is open before we attempt to send data, or attempt to receive data and wait for that timeout.
Any pointers? Thanks.