]> git.sesse.net Git - ffmpeg/commit
udp: Add an option for connecting the udp socket
authorMartin Storsjö <martin@martin.st>
Fri, 8 Oct 2010 08:42:30 +0000 (08:42 +0000)
committerMartin Storsjö <martin@martin.st>
Fri, 8 Oct 2010 08:42:30 +0000 (08:42 +0000)
commit6766a354f7a263241619428a43a92cdc40132086
tree918214d05eed16755e23adb8c49282fe3888abad
parentb7952ed184554e2200ac80979858b89d6f17412a
udp: Add an option for connecting the udp socket

This allows us to find out the local sending address via getsockname,
otherwise we just get INADDR_ANY (or similar for v6).

This also makes writes return ECONNREFUSED if nobody is listening on the
receiving port.

Originally committed as revision 25405 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/udp.c