Using Eric Young's SSL library has been my first contact with the C
language. I'm used to the cozy - but slow :( - world of java where you
catch exceptions and handle them.
In the native library based on SSLeay I built for a java application I'm
having trouble dealing with socket errors. They tend to hang the whole
application. Especially the "connection reset by peer" sends 'bad'
characters to the standard output and usually leaves the app in a bad
state.
To implement a socket I copied the init_client() method from s_client.c.
What is the best way to check for and deal with socket errors? Should I
pass the socket to the BIO library and let it deal with error-checking?
Thanks in advance.
--
Louis-David Mitterrand
http://www.aparima.com
[EMAIL PROTECTED]
+-------------------------------------------------------------------------+
| Administrative requests should be sent to [EMAIL PROTECTED] |
| List service provided by Open Software Associates, http://www.osa.com/ |
+-------------------------------------------------------------------------+