[Top][All Lists]

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

[Bug-gnulib] Re: xinet

From: Simon Josefsson
Subject: [Bug-gnulib] Re: xinet
Date: Sun, 19 Sep 2004 12:22:43 +0200
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux)

Paul Eggert <address@hidden> writes:

> 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.

Right.  I ended up removing my code that needed inet_ntoa, but if I
use inet_ntop somewhere I'll write a xinet_ntop/xinet_pton wrapper.


reply via email to

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