Hi All, I have a DTLS implementation where I am trying to connect to a server using SSL_connect(). I am checking for the error codes using the SSL_get_error.
My underlying BIO is non-blocking. Is there a way to figure out if the remote peer exists or not? As of now, I get SSL_ERROR_WANT_READ for both the cases where the server is genuinely in the handshake process and the case where the server is unreachable. I can have a maximum retry and abort the connection in the case of an unreachable server. Is there a better way than this? Thanks, Shreyas