diff options
author | Martin Storsjö <martin@martin.st> | 2010-10-08 08:49:56 +0000 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2010-10-08 08:49:56 +0000 |
commit | f6833fc1c68f119d266075dcfd729ff4440ac864 (patch) | |
tree | 3599d0bc27afd6843e797ad7b7618899ab9dff5a /doc | |
parent | 25968c3953b078897a53c6dbe60756be8fee060a (diff) | |
download | ffmpeg-f6833fc1c68f119d266075dcfd729ff4440ac864.tar.gz |
Add protocol documentation on the connect option to the udp protocol
Originally committed as revision 25407 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'doc')
-rw-r--r-- | doc/protocols.texi | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/protocols.texi b/doc/protocols.texi index e6a71f8c8d..88aedb930a 100644 --- a/doc/protocols.texi +++ b/doc/protocols.texi @@ -319,6 +319,13 @@ explicitly allow or disallow reusing UDP sockets @item ttl=@var{ttl} set the time to live value (for multicast only) + +@item connect=@var{1|0} +Initialize the UDP socket with @code{connect()}. In this case, the +destination address can't be changed with udp_set_remote_url later. +This allows finding out the source address for the packets with getsockname, +and makes writes return with AVERROR(ECONNREFUSED) if "destination +unreachable" is received. @end table Some usage examples of the udp protocol with @file{ffmpeg} follow. |