Do I need to call  ioctlsocket(m_socket, FIONBIO, (u_long FAR*) &iMode); to enable non-blocking or can I just #define FIONBIO and #define USE_NBIO from within my code? 

 

 


From: Chris Rowe [mailto:[EMAIL PROTECTED]
Sent: Friday, February 20, 2004 9:18 AM
To: '[EMAIL PROTECTED]'
Subject: Non-Blocking Socket Reads and Writes?

 

I am having a hard time finding a good example on using non-blocking I/O with SSL_Read and SSL_Write?

How do I set the underlying BIO to non-blocking? I am assuming it requires the use of SSL_ERROR_WANT_READ or SSL_peek()???

I have been looking in the man pages on openssl but need a little push in the right direction please.

 

Thanks in advance,

Chris Rowe

 

Reply via email to