Browse Source

Add protocol documentation on the connect option to the udp protocol

Originally committed as revision 25407 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/n0.8
Martin Storsjö 15 years ago
parent
commit
f6833fc1c6
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      doc/protocols.texi

+ 7
- 0
doc/protocols.texi View File

@@ -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.


Loading…
Cancel
Save