EC200U_CN AA - Socket connection issues

I have written TCP Client application using the SDK. EC200UCNAAR02A06M08_OCPU_CSDK version.

Trying to connect to the Server on a particular IP and Port. No problem when the server is running.

connect function returns 0 (success) if the server is running or not.

How to detect the socket status if the server is not running?

Connect function fails if the server is not running in case of linux/ubuntu.

I think there might be a bug in this version.

send me updated version of the SDK or let me know if there is a method to detect the socket status.

Hi there,
The connection should fail if server does not exist.
And you might be right, your SDK version is quite old. You should be able to get a updated version of the SDK from your supplier. R02 baseline is no longer maintained and it’s advised to switch to R03 baseline.