This has nothing to do with openssl in particular. This is a general socket 
programming scenario.
You can set your socket to non-blocking mode using fcntl(socket, F_SETFL, 
O_NONBLOCK) / ioctlsocket(AcceptSocket, FIONBIO, &NonBlock)
Google or RTFM if you wish to know more about these functions. You will have to 
handle ssl on non-blocking sockets differently though.

HTH
~ Urjit
  ----- Original Message -----
  From: Rahul Malegaonkar (rmalegao)
  To: openssl-users@openssl.org
  Sent: Saturday, June 23, 2007 6:04 AM
  Subject: How to change mode from Blocking to Non-blocking


  Hi,
  I am working on an application which currently uses Blocking I/O.
  At SSL_connect, my client waits for a long time till the SSL connection is 
established. I would like to change my I/O to non-blocking mode.
  Can you tell me the steps to follow for the same ?

  Thanks,
  Rahul



              Rahul Malegaonkar
              College Intern
              Product Development

              [EMAIL PROTECTED]
              Phone :1-4089023770
              Mobile :1-2152751701


              771 Alder Drive
              MILPITAS
              CA - 95035
              United States
              www.cisco.com


              This e-mail may contain confidential and privileged material for 
the sole use of the intended recipient. Any review, use, distribution or 
disclosure by others is strictly prohibited. If you are not the intended 
recipient (or authorized to receive for the recipient), please contact the 
sender by reply e-mail and delete all copies of this message.






DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Pvt. Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Pvt. Ltd. does not accept any liability for virus infected mails.

<<spacer.gif>>

<<footerHead.gif>>

<<footer.gif>>

Reply via email to