summaryrefslogtreecommitdiffstats
path: root/libmpdemux/network.c
Commit message (Collapse)AuthorAgeFilesLines
* Patch from Andreas Hess <jaska@gmx.net>:bertrand2003-06-211-22/+17
| | | | | | | | rtsp://<host>/<file>:<port> is not a valid URL, but rtsp://<host>:<port>/<file> is. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10318 b3059339-0415-0410-9bf9-f77b7e298cf2
* Networking support under MinGW.diego2003-06-111-9/+53
| | | | | | | Patch by flo/yepyep <flodt8@yahoo.de>. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10282 b3059339-0415-0410-9bf9-f77b7e298cf2
* Using recv/send instead read/write for proper MinGW support (it's a 4.2BSD ↵alex2003-05-291-3/+3
| | | | | | standard). Patch by FloDt <flodt8@yahoo.de> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10207 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix redirection in real rtsp connections.rtognimp2003-05-281-2/+20
| | | | | | | Patch by yepyep (sdpplin.c part not committed) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10200 b3059339-0415-0410-9bf9-f77b7e298cf2
* Recognize ra and rm extensions even with query strings,rtognimp2003-05-231-4/+15
| | | | | | | | eg: rstp://www.addr.com/file.rm?var=123 Based on an idea by Felix Buenemann git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10172 b3059339-0415-0410-9bf9-f77b7e298cf2
* We now check for "sip:" URLs - which are handled using the same LIVE.COMrsf2003-05-031-1/+10
| | | | | | | code as "rtsp://" URLs. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10056 b3059339-0415-0410-9bf9-f77b7e298cf2
* Some .ra files are playable, noted by Ross Finlaysonrtognimp2003-04-181-1/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9933 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fixed the code that checks for a ".rm" URL extension to also make surersf2003-04-181-1/+1
| | | | | | | that the extension is not NULL. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9924 b3059339-0415-0410-9bf9-f77b7e298cf2
* Real rstp:// streaming support, ported from xinertognimp2003-04-171-0/+63
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9923 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use inet_ntoa where inet_ntop is not available.bertrand2003-04-101-1/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9901 b3059339-0415-0410-9bf9-f77b7e298cf2
* removed some wrappers, now the configure checks for inet_pton. patch by Joey ↵alex2003-04-091-0/+4
| | | | | | Parrish <joey@nicewarrior.org> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9891 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use new config headersalbeu2003-03-301-5/+5
| | | | | | | Remove STREAMTYPE_PLAYLIST. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9750 b3059339-0415-0410-9bf9-f77b7e298cf2
* Added IPv6 support, patch by Dave Lambley ↵bertrand2003-03-261-21/+121
| | | | | | <mplayer-dev-eng@dlambley.freeserve.co.uk> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9692 b3059339-0415-0410-9bf9-f77b7e298cf2
* better cache size defaultsarpi2003-01-131-4/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8940 b3059339-0415-0410-9bf9-f77b7e298cf2
* Finally commented out the code for autodetection based on the extension.bertrand2003-01-111-2/+10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8891 b3059339-0415-0410-9bf9-f77b7e298cf2
* Return another error code for timeout.bertrand2003-01-061-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8825 b3059339-0415-0410-9bf9-f77b7e298cf2
* Added the ICY 403 "Service Forbiden" error message.bertrand2003-01-041-0/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8767 b3059339-0415-0410-9bf9-f77b7e298cf2
* pnm:// support (ported from xine)arpi2002-12-261-0/+45
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8571 b3059339-0415-0410-9bf9-f77b7e298cf2
* Added OGG streaming support, patch from Balatoni Denes <pnis@coder.hu>bertrand2002-11-051-1/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8115 b3059339-0415-0410-9bf9-f77b7e298cf2
* verbose can be negativearpi2002-11-011-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8028 b3059339-0415-0410-9bf9-f77b7e298cf2
* GCC warning fixesbertrand2002-10-291-6/+12
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7954 b3059339-0415-0410-9bf9-f77b7e298cf2
* allow cache to be disabled (-nocache should override cachesize autodetectionarpi2002-10-231-1/+1
| | | | | | | in stream layer) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7882 b3059339-0415-0410-9bf9-f77b7e298cf2
* cleanup config option handling in libmpdemux.arpi2002-10-231-52/+14
| | | | | | | | removed overcompilacted m_config_register_options() mess - export the subconfig structs instead git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7868 b3059339-0415-0410-9bf9-f77b7e298cf2
* mpdemux.c|h moved to libinput, mpdemux_check_interrupt() -> ↵arpi2002-10-231-2/+3
| | | | | | mp_input_check_interrupt() git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7863 b3059339-0415-0410-9bf9-f77b7e298cf2
* Display the IP address that has been resolved.bertrand2002-09-271-3/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7514 b3059339-0415-0410-9bf9-f77b7e298cf2
* Added a new ASX playlist mime-typebertrand2002-09-131-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7394 b3059339-0415-0410-9bf9-f77b7e298cf2
* Return -2 for fatal error while connecting to a server.bertrand2002-09-031-4/+6
| | | | | | | Fatal are unable to resolve name, connection timeout... git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7252 b3059339-0415-0410-9bf9-f77b7e298cf2
* typo fixes by Ross Finlayson <finlayson@live.com>arpi2002-08-141-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7008 b3059339-0415-0410-9bf9-f77b7e298cf2
* applied live.com streaming patch (-sdp and rtsp:// support) by Ross ↵arpi2002-08-051-1/+27
| | | | | | | | | Finlayson <finlayson@live.com> see <http://www.live.com/mplayer/> for details. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6911 b3059339-0415-0410-9bf9-f77b7e298cf2
* Retreive the bandwidth option from the command line.bertrand2002-07-051-6/+21
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6643 b3059339-0415-0410-9bf9-f77b7e298cf2
* Changed the -pass option to -passwd to avoid clash with mencoder option.bertrand2002-06-251-5/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6571 b3059339-0415-0410-9bf9-f77b7e298cf2
* Read username/password from the -user -pass command line options.bertrand2002-06-251-28/+35
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6559 b3059339-0415-0410-9bf9-f77b7e298cf2
* Moved authentication code into its own function.bertrand2002-06-241-44/+65
| | | | | | | Disabled the user/pass interaction. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6556 b3059339-0415-0410-9bf9-f77b7e298cf2
* Improved the authentication interaction. Still need to replace scanf.bertrand2002-06-231-13/+24
| | | | | | | After 4 failed authentication, mplayer quits. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6517 b3059339-0415-0410-9bf9-f77b7e298cf2
* Added HTTP basic authentication supportbertrand2002-06-231-0/+37
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6516 b3059339-0415-0410-9bf9-f77b7e298cf2
* Here I go again, another fix for the timeout.bertrand2002-06-211-4/+6
| | | | | | | | Note that we shouldn't rely on the value of the timeval struct after select returns. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6478 b3059339-0415-0410-9bf9-f77b7e298cf2
* Increased the timeout value on connection.bertrand2002-06-211-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6477 b3059339-0415-0410-9bf9-f77b7e298cf2
* Added mplayer version in the user-agent field.bertrand2002-06-201-1/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6467 b3059339-0415-0410-9bf9-f77b7e298cf2
* Added some missing carriage returns.bertrand2002-06-171-7/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6455 b3059339-0415-0410-9bf9-f77b7e298cf2
* added some new typesalex2002-05-091-1/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6033 b3059339-0415-0410-9bf9-f77b7e298cf2
* Added ICY error 400: Server full.bertrand2002-04-301-0/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5917 b3059339-0415-0410-9bf9-f77b7e298cf2
* Convert printf to mp_msg in the network layeralbeu2002-04-301-58/+56
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5916 b3059339-0415-0410-9bf9-f77b7e298cf2
* Added ICY error 401: Service unavailable.bertrand2002-04-281-0/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5893 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add some info prints to ICY code and handle return codes ICY specific, also ↵atmos42002-04-271-4/+32
| | | | | | | | | avoid printing content length in http if no Content-Length field in header. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5869 b3059339-0415-0410-9bf9-f77b7e298cf2
* ICY found (mp3 stream) != sucess.albeu2002-04-271-1/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5868 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make blocking call in libmpdemux interuptable (only with new input,albeu2002-02-231-7/+16
| | | | | | | awnser to quit, pt_next, pt_up_step and alt_src_step) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4826 b3059339-0415-0410-9bf9-f77b7e298cf2
* Handle HTTP OK response that doesn't contain a mime-type.bertrand2002-02-231-4/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4818 b3059339-0415-0410-9bf9-f77b7e298cf2
* Finnaly figured out this little long living bugalbeu2002-02-221-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4803 b3059339-0415-0410-9bf9-f77b7e298cf2
* Support for retriving mp3 playlist from the networkalbeu2002-02-211-0/+9
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4784 b3059339-0415-0410-9bf9-f77b7e298cf2
* Changed the default prefill cache value for raw network input stream.bertrand2002-02-171-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4731 b3059339-0415-0410-9bf9-f77b7e298cf2
* fixed MP3 ICY detection, return detected file format for open_streamalex2002-02-161-7/+16
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4730 b3059339-0415-0410-9bf9-f77b7e298cf2
* Cleaned up the way proxies checking was done.bertrand2002-02-111-13/+15
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4653 b3059339-0415-0410-9bf9-f77b7e298cf2
* ehh. i forgot to commit this patch: fix RTP streaming. patch by Dave Chapman ↵arpi2002-02-061-7/+8
| | | | | | <dave@dchapman.com> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4554 b3059339-0415-0410-9bf9-f77b7e298cf2
* Modified the cache option value setting/reading, so we can reportbertrand2002-01-221-9/+21
| | | | | | | in any case the cache size value used. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4303 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add a check to not set the cache size if the user alredy set it.albeu2002-01-211-12/+13
| | | | | | | Use m_config_set_int in place of m_config_set_option. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4294 b3059339-0415-0410-9bf9-f77b7e298cf2
* Set the cache value if the network layer was able to compute it.bertrand2002-01-201-7/+19
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4290 b3059339-0415-0410-9bf9-f77b7e298cf2
* Moved network related code from open.c to network.cbertrand2002-01-191-9/+26
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4252 b3059339-0415-0410-9bf9-f77b7e298cf2
* added .rm (real) and .y4m (yuv4mpeg)alex2002-01-181-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4237 b3059339-0415-0410-9bf9-f77b7e298cf2
* Added support for the environment variable http_proxy.bertrand2002-01-141-2/+43
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4147 b3059339-0415-0410-9bf9-f77b7e298cf2
* Changed the proxy protocol to http_proxy.bertrand2002-01-141-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4146 b3059339-0415-0410-9bf9-f77b7e298cf2
* Added proxy support.bertrand2002-01-121-10/+41
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4122 b3059339-0415-0410-9bf9-f77b7e298cf2
* Applied RTP patch from Brian Kuschak <bkuschak@yahoo.com>bertrand2002-01-101-5/+13
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4073 b3059339-0415-0410-9bf9-f77b7e298cf2
* Kept the HTTP connection open after autodetect, sobertrand2002-01-081-50/+49
| | | | | | | we don't need to reopen and request a second time. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4047 b3059339-0415-0410-9bf9-f77b7e298cf2
* various small streaming fixes by Alban Bedel <albeu@free.fr>arpi2002-01-081-3/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4042 b3059339-0415-0410-9bf9-f77b7e298cf2
* possible uninit pointer free()'dpl2001-12-251-3/+2
| | | | | | | possible bad pointer git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3733 b3059339-0415-0410-9bf9-f77b7e298cf2
* RTP support patch by Brian Kuschak <bkuschak@yahoo.com>arpi2001-12-231-0/+137
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3687 b3059339-0415-0410-9bf9-f77b7e298cf2
* If the demuxer type is unknown it will start an http streaming.bertrand2001-12-191-6/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3605 b3059339-0415-0410-9bf9-f77b7e298cf2
* nop_steraming fixedarpi2001-12-191-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3600 b3059339-0415-0410-9bf9-f77b7e298cf2
* Added the Host field in the HTTP request.bertrand2001-12-181-0/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3586 b3059339-0415-0410-9bf9-f77b7e298cf2
* Applied the patch from Alban Bedel <albeu@free.fr>.bertrand2001-12-141-2/+13
| | | | | | | | He added some errors checking on network code. Added a check on the port number parsing in the url. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3495 b3059339-0415-0410-9bf9-f77b7e298cf2
* Added a data field in the streaming_ctrl_t struct, to store anybertrand2001-12-111-3/+7
| | | | | | | kind of data that the protocol need to keep track of. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3454 b3059339-0415-0410-9bf9-f77b7e298cf2
* Moved the network related include files from network.c to network.hbertrand2001-12-101-10/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3425 b3059339-0415-0410-9bf9-f77b7e298cf2
* Checked the return values on read.bertrand2001-12-071-1/+13
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3366 b3059339-0415-0410-9bf9-f77b7e298cf2
* added some new typesalex2001-11-221-0/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3073 b3059339-0415-0410-9bf9-f77b7e298cf2
* Removed my buffer hack to use cache2.bertrand2001-11-201-293/+156
| | | | | | | | Removed the network thread. Changed the network layer to use cache2. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3043 b3059339-0415-0410-9bf9-f77b7e298cf2
* config.h cleanup, few things added to steram/demuxer headersarpi2001-10-301-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2556 b3059339-0415-0410-9bf9-f77b7e298cf2
* Added ASF http server streaming (Not mms streaming).bertrand2001-10-261-1/+1
| | | | | | | | Fixed one bug in the ASF mms streaming. Fixed a typo in http. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2490 b3059339-0415-0410-9bf9-f77b7e298cf2
* libdemuxer...arpi