Hi folks,

I have to implement a buffer mechanism in a daemon I'm writing, and I am
reading various pieces of high-quality software (that all happen to be
part of openbsd source tree (yes I am lazy)) to compare how it's done.
That includes of course OpenSMTPd.

I took a look at iobuf.c, and as I understand it when they are used to
read data you use realloc(3) to extend the size of a single char array,
but to write you chain several char arrays into an iovec.

Why did it end up this way ? More precisely, are there any drawbacks in
using an iovec to read inbound data ?

Cheers, and thanks for your hard work !

--
Vincent / dermiste

Attachment: pgp8dbRttxt6q.pgp
Description: PGP signature

Reply via email to