Re: [fw-wiz] Code reviews [Was: FWTK and smap/smapd]

From: Darren Reed (darrenr@reed.wattle.id.au)
Date: 07/23/02


From: Darren Reed <darrenr@reed.wattle.id.au>
To: ark@eltex.ru
Date: Tue Jul 23 12:07:35 2002

In some email I received from ark@eltex.ru, sie wrote:
> nuqneH,
>
> It depends on what the maximum buflen is, isn't it?

Nope!

> > Nowadays, I have far lower expectations. I have now interviewed dozens of
> > "UNIX network programmers", and have had _one_ person ever get this
> > interview question correct (taken from a fwtk bug, btw):
> >
> > Given a buffer char *buf, a buffer length unsigned int buflen, and a
> > connected TCP session on file descriptor fd, write the buffer to the file
> > descriptor correctly, including error checking.

btw, I only got 1 (I'd argue I thought of the other but the spec for the
function wasn't very precise so I discounted it:)...but found bugs in
stevens' code ;)