Martin Storsjö
814c56413d
Don't explicitly initialize networking in the tcp and udp protocols
...
Networking is always initialized when opening protocols.
Originally committed as revision 22227 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Ronald S. Bultje
88248b76af
Fix BSD compile (PF_UNSPEC is not a standard define, AF_UNSPEC is).
...
Originally committed as revision 21490 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
fdcdd5396e
Use getaddrinfo() instead of resolve_host(). Patch by Martin Storsjö
...
<$firstname()$firstname,st>.
Originally committed as revision 21147 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
73c1326809
Use ff_neterrno instead of errno in tcp.c.
...
If ff_neterrno() is checked instead of errno, that's probably what should be
used in the return value.
As a sideeffect, this gives better compatibility with Windows (CE), where
network errors aren't visible in errno.)
patch by Martin Storsjö, martin martin st
Originally committed as revision 19433 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Ronald S. Bultje
f0a8039464
Add url_get_file_handle(), which is used to get the file descriptor
...
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
16 years ago
Diego Biurrun
406792e7b0
cosmetics: Remove pointless period after copyright statement non-sentences.
...
Originally committed as revision 16684 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Aurelien Jacobs
b250f9c66d
Change semantic of CONFIG_*, HAVE_* and ARCH_*.
...
They are now always defined to either 0 or 1.
Originally committed as revision 16590 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Baptiste Coudurier
6ad1c9c992
only include sys/select.h if present, fix mingw compilation
...
Originally committed as revision 15420 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Baptiste Coudurier
c75a0cce5b
include sys/select.h to get select, according to posix 2001,
...
fix compilation on freebsd 5.5
Originally committed as revision 15406 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Ronald S. Bultje
f23a9759ce
Remove check for @ in tcp.c which removes the authorization data from the
...
actual hostname. This functionality already exists (and always existed) in
url_split() and is therefore useless. See discussion in "[PATCH] tcp.c/udp.c
memleak?" thread on ffmpeg-devel.
Originally committed as revision 14946 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Ronald S. Bultje
a3303add3c
Cosmetics after previous patches.
...
Originally committed as revision 14926 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Ronald S. Bultje
8b9af28da4
On failure, return directly because the fail: case does nothing. This also
...
allows easier control of the actual return value.
Originally committed as revision 14925 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Ronald S. Bultje
47f944a2ef
Move malloc() down until after all initializations, so that the resource is
...
only allocated if initialization worked. This means that on failure, we
don't have to deallocate it.
Originally committed as revision 14924 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Ronald S. Bultje
e6c1381982
Fix memleak on some OSes in case network initialization fails. See
...
"[PATCH] tcp.c/udp.c memleak?" for discussion.
Originally committed as revision 14923 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Ronald S. Bultje
ad33bfefc7
Remove useless comments. See "[PATCH] tcp.c/udp.c memleak?" for discussion.
...
Originally committed as revision 14922 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
d78d72da66
Set TCP protocol to is_streamed=1 as seeking is not possible.
...
Björn Axelsson, bjorn.axelsson intinor se
Originally committed as revision 12338 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Luca Abeni
087b327287
Include os_support.h only when needed
...
Originally committed as revision 11073 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Ramiro Polla
1642cb6b2e
Add initialization and cleanup functions for Winsock
...
Originally committed as revision 10040 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Ramiro Polla
85060fe6b4
MinGW returns EAGAIN instead of EINPROGRESS
...
Originally committed as revision 9982 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Panagiotis Issaris
6f3e0b2174
Replace all occurrences of AVERROR_IO with AVERROR(EIO).
...
Originally committed as revision 9760 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Alex Beregszaszi
ba472aaf01
implement ff_socket_nonblock and use it in networking code
...
Originally committed as revision 8846 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Alex Beregszaszi
8da4034f52
use ff_neterrno() and FF_NETERROR() for networking error handling
...
Originally committed as revision 8845 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Alex Beregszaszi
383eda2348
move resolve_host from tcp.c to os_support.c as it is used widely
...
Originally committed as revision 8834 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Alex Beregszaszi
a33cc9511b
cosmetics in resolve_host
...
Originally committed as revision 8833 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Alex Beregszaszi
b5cccea088
change PF_INET to AF_INET to be consistent in the whole project. PF_INET is deprecated, while AF_INET is referred by the POSIX standards
...
Originally committed as revision 8073 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
François Revol
8fa36ae09d
This fixes error handling for BeOS, removing the need for some ifdefs.
...
AVERROR_ defines are moved to avcodec.h as they are needed in there as well. Feel free to move that to avutil/common.h.
Bumped up avcodec/format version numbers as though it's binary compatible we will want to rebuild apps as error values changed.
Please from now on use return AVERROR(EFOO) instead of the ugly return -EFOO in your code.
This also removes the need for berrno.h.
Originally committed as revision 7965 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Ramiro Polla
42572ef53f
move networking #includes into separate file
...
patch by Ramiro Polla angustia =a= arrozcru =d= no-ip =d= org
Originally committed as revision 7817 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Ramiro Polla
95a47d963b
BeOS cleanup
...
Patch by Ramiro Polla % ramiro A lisha P ufsc P br %
Original thread:
date: Jan 20, 2007 8:56 PM
subject: [Ffmpeg-devel] [PATCH] [RFC] change socket read and write functions
Originally committed as revision 7613 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Aurelien Jacobs
763750242b
cosmetics: indentation
...
Originally committed as revision 7583 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
François Revol
e9d511dc7e
The long awaited BeOS cleanup, phase 1
...
Originally committed as revision 7581 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Diego Biurrun
b78e7197a8
Change license headers to say 'FFmpeg' instead of 'this program/this library'
...
and fix GPL/LGPL version mismatches.
Originally committed as revision 6577 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Michael Niedermayer
e2a5fd2049
os2 thread, network and freetype2 support by (Paul Smedley | paulat a t smedleydot d o t info)
...
Originally committed as revision 4922 to svn://svn.ffmpeg.org/ffmpeg/trunk
19 years ago
Diego Biurrun
5509bffa88
Update licensing information: The FSF changed postal address.
...
Originally committed as revision 4842 to svn://svn.ffmpeg.org/ffmpeg/trunk
19 years ago
Diego Biurrun
115329f160
COSMETICS: Remove all trailing whitespace.
...
Originally committed as revision 4749 to svn://svn.ffmpeg.org/ffmpeg/trunk
19 years ago
Diego Biurrun
01cf54f041
Mac OS X 10.4 compilation fix by Steven M. Schultz <sms at 2BSD dot COM>
...
Originally committed as revision 4207 to svn://svn.ffmpeg.org/ffmpeg/trunk
20 years ago
Måns Rullgård
88730be651
kill warnings patch by (Måns Rullgård <mru inprovide com>)
...
Originally committed as revision 3977 to svn://svn.ffmpeg.org/ffmpeg/trunk
20 years ago
Petr Doubek
6ba5cbc699
HTTP Authentication Patch by (Petr Doubek <doubek at vision dot ee dot ethz dot ch>)
...
tested and submitted by (Torsten Spindler <spindler at hbt dot arch dot ethz dot ch>)
Originally committed as revision 3381 to svn://svn.ffmpeg.org/ffmpeg/trunk
21 years ago
Mike Melanson
0bd586c50d
sweeping change from -EIO -> AVERROR_IO
...
Originally committed as revision 3239 to svn://svn.ffmpeg.org/ffmpeg/trunk
21 years ago
Leon van Stuivenberg
b51469a0c5
tcp select() check and enables pressing 'q' when reading/(writing) from
...
tcp/http in ffmpeg.c patch by (Leon van Stuivenberg <l dot vanstuivenberg at chello dot nl>)
Originally committed as revision 2891 to svn://svn.ffmpeg.org/ffmpeg/trunk
21 years ago
Michael Niedermayer
9eef2b77b2
no read loop tcp/http and http CRLF fix by (Leon van Stuivenberg <l dot vanstuivenberg at chello dot nl>)
...
Originally committed as revision 2885 to svn://svn.ffmpeg.org/ffmpeg/trunk
21 years ago
Philip Gladstone
6c8e0d4d46
Fix a very nasty problem with extra bytes appearing in TCP data streams.
...
Whenever there was an EINTR/EAGAIN return, then a byte in the data stream
would be duplicated!! This fix should allow ffserver to work again.
Originally committed as revision 2317 to svn://svn.ffmpeg.org/ffmpeg/trunk
21 years ago
Fabrice Bellard
4358d5def3
removed ctype.h header
...
Originally committed as revision 2225 to svn://svn.ffmpeg.org/ffmpeg/trunk
22 years ago
François Revol
438fcb754f
OSX and BeOS networking fix (socklen_t)
...
Originally committed as revision 2077 to svn://svn.ffmpeg.org/ffmpeg/trunk
22 years ago
Fabrice Bellard
09787fb8af
support aborting in TCP
...
Originally committed as revision 2061 to svn://svn.ffmpeg.org/ffmpeg/trunk
22 years ago
Zdenek Kabelac
0c1a9edad4
* UINTX -> uintx_t INTX -> intx_t
...
Originally committed as revision 1578 to svn://svn.ffmpeg.org/ffmpeg/trunk
22 years ago
Fabrice Bellard
abac617591
renamed libav to libavformat
...
Originally committed as revision 1276 to svn://svn.ffmpeg.org/ffmpeg/trunk
22 years ago
Michael Niedermayer
b8a78f419d
reversing header game
...
MIN/MAX -> FFMIN/FFMAX
Originally committed as revision 1184 to svn://svn.ffmpeg.org/ffmpeg/trunk
22 years ago
François Revol
9eb826478c
MIN/MAX sys/param.h patch by (François Revol <revol at free dot fr>)
...
Originally committed as revision 1164 to svn://svn.ffmpeg.org/ffmpeg/trunk
22 years ago
François Revol
9ddd71fc60
added BeOS net_server support (R5 network stack), basically the same
...
problems as with winsock (sockets != fd), and the broken select().
based on older patch by Andrew Bachmann.
patch by (François Revol <revol at free dot fr>)
Originally committed as revision 1144 to svn://svn.ffmpeg.org/ffmpeg/trunk
22 years ago
Fabrice Bellard
171bbb03ad
added raw tcp support
...
Originally committed as revision 717 to svn://svn.ffmpeg.org/ffmpeg/trunk
23 years ago