diff options
author | Martin Storsjö <martin@martin.st> | 2011-01-06 18:16:50 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2011-01-06 18:16:50 +0300 |
commit | 21a569f3022e968d74bfde4d1bfff8dab5edd41c (patch) | |
tree | 6c8e48febc3977bd1665015b6d8d90a3c79db25f /doc | |
parent | babd19ce2e38446cdabe0f648c6189c7f1dc7378 (diff) |
udp: Allow specifying the connect option in udp_set_remote_url, too
If the remote address is updated later with this function, the caller
shouldn't set the connect option until in this call.
Originally committed as revision 26245 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'doc')
-rw-r--r-- | doc/protocols.texi | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/protocols.texi b/doc/protocols.texi index b76e45c3d3..600f470458 100644 --- a/doc/protocols.texi +++ b/doc/protocols.texi @@ -415,9 +415,13 @@ 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. +If the destination address isn't known at the start, this option can +be specified in udp_set_remote_url, too. This allows finding out the source address for the packets with getsockname, and makes writes return with AVERROR(ECONNREFUSED) if "destination unreachable" is received. +For receiving, this gives the benefit of only receiving packets from +the specified peer address/port. @end table Some usage examples of the udp protocol with @file{ffmpeg} follow. |