[FFmpeg-devel] [PATCH/RFC] Prefer getaddrinfo over gethostbyname

Ronald S. Bultje rsbultje
Wed Jan 6 17:01:55 CET 2010


On Tue, Jan 5, 2010 at 6:19 AM, Martin Storsj? <martin at martin.st> wrote:
> As a follow-up to this, as discussed in the other thread - we may want to
> rely on the getnameinfo interface, too, for ip -> host resolving or for ip
> -> string formatting. This patch can be applied after the getaddrinfo
> wrapper patch, making sure the getnameinfo function is always available.

I like this very much. Michael (or anyone caring about libossupport),
can I apply these wrappers to libossupport?

(And yes, I'd like to remove any and all use of inet_nto[pa]/[pa]ton()
and replace everything by these two, because working with different
(e.g. IPv4 AND IPv6) families is imo much easier using
getaddr/nameinfo() than using inet_xtoy().)


More information about the ffmpeg-devel mailing list