On Tue, Jun 10, 2008 at 10:20:56PM -0700, David Schwartz wrote:
>
> > This code just goes into a loop and keeps writing the first piece
> > of info it reads. What am I doing wrong here?
> >
> > while (nread = BIO_gets(out, buf, sizeof(buf) ) )
> > {
> > err = BIO_write(out,buf,nread );
> > }
>
> That's precisely what it's coded to do. Get a byte, then write that byte
> out, then get that byte then write it out. (Perhaps you meant to 'gets' from
> a different 'BIO' than you 'write' to?)
It's supposed to be a simple echo server. gets reads data until it
reaches a carriage return, correct?
brian
--
Brian Lavender
http://www.brie.com/brian/
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [email protected]
Automated List Manager [EMAIL PROTECTED]