[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnulib] xinet

From: Paul Eggert
Subject: Re: [Bug-gnulib] xinet
Date: Sat, 18 Sep 2004 21:26:01 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

I dunno, that one looks fairly specialized.  It allocates
constant-sized and small objects, which is often easier and more
efficient to allocate in the stack frame of the caller.  Also,
inet_ntoa is obsolescent, as it can't handle IPv6 addresses.

If we're going to all that work, wouldn't it be better to build a
wrapper around inet_ntop instead?  It is more future-proof, and it has
the varying-size buffer problem that needs a wrapper more.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]