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

Martin Storsjö martin
Tue Jan 5 12:19:51 CET 2010


On Mon, 4 Jan 2010, Martin Storsj? wrote:

> On Sun, 3 Jan 2010, Ronald S. Bultje wrote:
> 
> > 0005 (addrinfo) - as said before, use ff_ prefix and add define to
> > header, then OK with me
> 
> Ok, added ff_ prefix.

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.

If/when this is applied, the inet_ntop patch in the RTSP thread isn't 
needed any more, and the inet_ntop usage in the later patch can be 
converted to getnameinfo instead..

// Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: getnameinfo.patch
Type: text/x-diff
Size: 3313 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100105/b7ca9889/attachment.patch>



More information about the ffmpeg-devel mailing list