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,
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 );
> > }
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 );
> > }
> 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