[FFmpeg-devel] [PATCH] Make RTP work with IPv6 enabled

Luca Abeni lucabe72
Mon Oct 29 16:27:05 CET 2007


Hi Ronald,

Ronald S. Bultje wrote:
> Hi,
> 
> On 10/29/07, Ronald S. Bultje <rsbultje at gmail.com> wrote:
>> Still no idea why the connect() would make it work, though, since the
>> connect() also takes place after the bind() and should thus fail
>> similarly...
> 
> 
> No idea about this, but a quick testcase confirms that this is in fact the
> real problem (see attached testcase - does that work under Linux?).
I tried it under Linux, and I get
ok - 2/10
so I guess it works :)

However... I decided to have a look at this getaddrinfo() stuff, and the
first thing that linux manpages say is "creates one or more socket address
structures that can be used by the bind(2) and connect(2)". sendto() is
not mentioned. So, I am wondering if an address prepared by getaddrinfo()
can be used by sendto() or not (it works on Linux, but maybe it is not
required to work?).
Even after reading Nicolas message, I still do not understand why the good
old way of filling sockaddr structures should be replaced with this...

Ok, I am going to read some more documentation...


				Luca




More information about the ffmpeg-devel mailing list