Re: Using OpenSSL with non-blocking I/O

2011-05-06 Thread Gayathri Sundar
I think the openssl src already has sample server and client programs which are written in non blocking mode ..check wserver2.c if I am able to recall. On Fri, May 6, 2011 at 2:42 PM, Graham Leggett wrote: > On 06 May 2011, at 9:23 PM, derleader mail wrote: > > Can you show us the source code.

Re: Using OpenSSL with non-blocking I/O

2011-05-06 Thread Graham Leggett
On 06 May 2011, at 9:23 PM, derleader mail wrote: Can you show us the source code. Paste it into pastebin.org. We do non blocking SSL by accepting the socket in the normal way (using accept, not SSL_accept), and then wrapping the socket in a BIO like this: BIO *sbio = BIO_new_so

Re: Re: Using OpenSSL with non-blocking I/O

2011-05-06 Thread derleader mail
>> Hi, >> >> >> >> I am developing and application using OpenSSL. I have a proprietary system >> to handle connection/read data from sockets. All I need to do is to pass >> callback functions to the system to >> >> 1. Handle new connection >> >> 2. Read

Re: Using OpenSSL with non-blocking I/O

2011-05-06 Thread Dr. Stephen Henson
On Fri, May 06, 2011, Rajib Karmakar wrote: > Hi, > > > > I am developing and application using OpenSSL. I have a proprietary system > to handle connection/read data from sockets. All I need to do is to pass > callback functions to the system to > > 1. Handle new connection > >

Using OpenSSL with non-blocking I/O

2011-05-06 Thread Rajib Karmakar
Hi, I am developing and application using OpenSSL. I have a proprietary system to handle connection/read data from sockets. All I need to do is to pass callback functions to the system to 1. Handle new connection 2. Read data on the given port Now while I use Open