summaryrefslogtreecommitdiff
path: root/libavformat/udp.c
Commit message (Collapse)AuthorAge
...
* udp: Add an option for connecting the udp socketMartin Storsjö2010-10-08
| | | | | | | | | | 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
* Convert ff_is_multicast_address to take a struct sockaddr parameterMartin Storsjö2010-10-07
| | | | | | | | Not all users of this function will have a full struct sockaddr_storage available, and casting other sockaddrs to sockaddr_storage is wrong, while any sockaddr can be cast to a base sockaddr. Originally committed as revision 25388 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Share the is_multicast_address functionMartin Storsjö2010-10-07
| | | | | | | | The header probably isn't the right permanent place for this function, but it is quite small, and consensus seems to be that it can stay in the header for now, instead of creating a new file network.c just for this one. Originally committed as revision 25387 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move multicast address identification fallback macros to network.h from udp.cMartin Storsjö2010-10-07
| | | | Originally committed as revision 25386 to svn://svn.ffmpeg.org/ffmpeg/trunk
* udp: Define _DARWIN_C_SOURCEMartin Storsjö2010-10-05
| | | | | | This is required in order to get the IP_MULTICAST_TTL define. Originally committed as revision 25351 to svn://svn.ffmpeg.org/ffmpeg/trunk
* udp: Return the actual error code on errors, instead of AVERROR(EIO)Martin Storsjö2010-10-05
| | | | Originally committed as revision 25350 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Check for the IPPROTO_IPV6 define before using itMartin Storsjö2010-09-20
| | | | | | | This fixes building on FreeBSD in some configurations, if the IPv6 multicast structs are available, but IPPROTO_IPV6 isn't defined. Originally committed as revision 25147 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Check for udp_set_remote_url error.Reimar Döffinger2010-07-28
| | | | | | Fixes issue 1784 (hang with nonsense URL/no network available). Originally committed as revision 24575 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix misspelled parameter names in Doxygen documentation.Diego Biurrun2010-07-02
| | | | | | This fixes one Doxygen warning each. Originally committed as revision 23970 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make ff_url_split() publicMåns Rullgård2010-06-27
| | | | | | | ff_url_split() is retained as an alias, as it was used by ffserver, to avoid breaking ABI compatibility with it. Originally committed as revision 23822 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cosmetics: Change connexion to connection in code commentsMartin Storsjö2010-06-14
| | | | Originally committed as revision 23601 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Declare the url_write buffer parameter as constMartin Storsjö2010-06-01
| | | | Originally committed as revision 23401 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove explicit filename from Doxygen @file commands.Diego Biurrun2010-04-20
| | | | | | | | Passing an explicit filename to this command is only necessary if the documentation in the @file block refers to a file different from the one the block resides in. Originally committed as revision 22921 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Don't report EINTR from select as an error, retry select insteadMartin Storsjö2010-03-26
| | | | Originally committed as revision 22694 to svn://svn.ffmpeg.org/ffmpeg/trunk
* move ff_url_split() and ff_url_join() declarations to internal.hAurelien Jacobs2010-03-14
| | | | | | those functions are not part of the public API Originally committed as revision 22534 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename url_split to ff_url_splitMartin Storsjö2010-03-08
| | | | | | Since this function isn't in the public API, it should have an ff_ prefix. Originally committed as revision 22321 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Don't explicitly initialize networking in the tcp and udp protocolsMartin Storsjö2010-03-05
| | | | | | Networking is always initialized when opening protocols. Originally committed as revision 22227 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Explicitly set struct addrinfo to NULL if getaddrinfo failed instead ofReimar Döffinger2010-02-28
| | | | | | assuming getaddrinfo will have done this. Originally committed as revision 22123 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make style a little bit more K&R'ish.Ronald S. Bultje2010-01-22
| | | | Originally committed as revision 21383 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename a function which is no longer ipv6-specific. Patch by Martin StorsjöMartin Storsjö2010-01-22
| | | | | | <$firstname () $firstname st>. Originally committed as revision 21382 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove IPv4-only codepath. Patch by Martin Storsjö <$first $first st>.Martin Storsjö2010-01-21
| | | | Originally committed as revision 21365 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add url_get_file_handle(), which is used to get the file descriptorRonald S. Bultje2009-03-03
| | | | | | | | | | | associated with the I/O handle (e.g. the fd returned by open()). See "[RFC] rtsp.c EOF support" thread. There were previously some URI-specific implementations of the same idea, e.g. rtp_get_file_handles() and udp_get_file_handle(). All of these are deprecated by this patch and will be removed at the next major API bump. Originally committed as revision 17779 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use full internal pathname in doxygen @file directives.Diego Biurrun2009-02-01
| | | | | | | Otherwise doxygen complains about ambiguous filenames when files exist under the same name in different subdirectories. Originally committed as revision 16912 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: Remove pointless period after copyright statement non-sentences.Diego Biurrun2009-01-19
| | | | Originally committed as revision 16684 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change semantic of CONFIG_*, HAVE_* and ARCH_*.Aurelien Jacobs2009-01-13
| | | | | | They are now always defined to either 0 or 1. Originally committed as revision 16590 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add sys/time.h header #include, fixes compilation on OS/2.Dave Yeo2008-12-12
| | | | | | patch by Dave Yeo, daveryeo telus net Originally committed as revision 16077 to svn://svn.ffmpeg.org/ffmpeg/trunk
* bind to the multicast address if possibleJindřich Makovička2008-12-07
| | | | Originally committed as revision 16032 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Get rid of MSG_DONTWAIT using a more standard way to use a socketJindřich Makovička2008-11-17
| | | | | | | in a non blocked mode. Patch by Jindrich Makovicka: makovick gmail Originally committed as revision 15846 to svn://svn.ffmpeg.org/ffmpeg/trunk
* check for interrupt when receiving from socketJindřich Makovička2008-11-14
| | | | Originally committed as revision 15824 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Allow the UDP socket buffer size to be adjusted using aJindřich Makovička2008-11-12
| | | | | | | | 'buffer_size' URL option. Patch by Jindrich Makovicka, makovick at gmail dot com Originally committed as revision 15807 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix udp.c compilation with recent glibc (>= 2.8)Luca Abeni2008-08-25
| | | | Originally committed as revision 14963 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix memleak on some OSes in case network initialization fails. SeeRonald S. Bultje2008-08-23
| | | | | | "[PATCH] tcp.c/udp.c memleak?" for discussion. Originally committed as revision 14923 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix type of dest_addr_len to respect return value of udp_set_url.Luca Abeni2008-05-11
| | | | | | Patch by Luca Abeni. Originally committed as revision 13114 to svn://svn.ffmpeg.org/ffmpeg/trunk
* doxy header for udp protocolLuca Barbato2008-04-16
| | | | Originally committed as revision 12861 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove the "multicast=" tag from UDP and RTP URLsLuca Abeni2008-04-15
| | | | Originally committed as revision 12830 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Do not use GNU-specific (or BSD-specific or whatever they may be)D Richard Felker III2008-02-11
| | | | | | | constants which are completely unneeded anyway. Note that 3 is a cheap integer bound for log10(1<<CHAR_BIT). Originally committed as revision 11902 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Include os_support.h only when neededLuca Abeni2007-11-21
| | | | Originally committed as revision 11073 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove perror() usage from udp.cLuca Abeni2007-11-19
| | | | Originally committed as revision 11059 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove some more duplicated codeLuca Abeni2007-11-15
| | | | Originally committed as revision 11038 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove the useless variable "my_addr1"Luca Abeni2007-11-15
| | | | Originally committed as revision 11037 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use the same code to set local_port in the IPv4-only case and in theLuca Abeni2007-11-15
| | | | | | protocol-independet case Originally committed as revision 11036 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove some useless assignments (the UDPContext is allocated with av_mallocz())Luca Abeni2007-11-14
| | | | Originally committed as revision 11017 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Simplify set_remote_url(), and remove some code duplicationLuca Abeni2007-11-14
| | | | Originally committed as revision 11016 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use recv() instead of recvfrom() (removes some other differences betweenLuca Abeni2007-11-14
| | | | | | IPv4-only and protocol-independent code) Originally committed as revision 11015 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove a now unused fieldLuca Abeni2007-11-14
| | | | Originally committed as revision 11014 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Give better names to multicast functions (they are not IPv6-only)Luca Abeni2007-11-14
| | | | Originally committed as revision 11013 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Avoid to duplicate the multicast code between the IPv4-only andLuca Abeni2007-11-14
| | | | | | protocol-independent versions Originally committed as revision 11012 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove some ifdefs by using the "dest_addr_len" field in both the IPv4-onlyLuca Abeni2007-11-14
| | | | | | code and the protocol-independent code Originally committed as revision 11011 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Take the target address family in account when determining the family ofRonald S. Bultje2007-10-31
| | | | | | | | | the local address to bind. Fixes ffserver and UDP streaming without --disable-ipv6 on MacOS X Patch by Ronald S. Bultje (rsbultje st gmail dot com) Originally committed as revision 10883 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Reindent after last commitLuca Abeni2007-10-31
| | | | Originally committed as revision 10882 to svn://svn.ffmpeg.org/ffmpeg/trunk