Re: Code goes into a loop

2008-06-13 Thread Mark H. Wood
On Fri, Jun 13, 2008 at 01:07:50AM -0700, Brian Lavender wrote: > 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,

Re: Code goes into a loop

2008-06-13 Thread Brian Lavender
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 ); > > }

Re: Code goes into a loop

2008-06-10 Thread Brian Lavender
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 ); > > }

RE: Code goes into a loop

2008-06-10 Thread David Schwartz
> 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, t