summaryrefslogtreecommitdiff
path: root/libavformat/ftp.c
Commit message (Collapse)AuthorAge
* lavf/ftp: fix seek to nagative positionLukasz Marek2014-02-28
| | | | Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* lavf/ftp: remove double spaceLukasz Marek2014-01-22
| | | | Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* avformat/ftp: add log regarding passive mode failureLukasz Marek2013-10-12
| | | | Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* avformat/ftp: fix possible deadlockLukasz Marek2013-10-12
| | | | Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* lavf/ftp: fix possible crashLukasz Marek2013-08-29
|
* avformat/ftp: make const tables static constMichael Niedermayer2013-08-27
| | | | | Reviewed-by: Lukasz M <lukasz.m.luki@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* ftp: warning about pure-ftp server used as and outputLukasz Marek2013-07-17
|
* ftp: commentsLukasz Marek2013-07-17
|
* ftp: remove unused headersLukasz Marek2013-07-17
|
* ftp: fix interrupt callback misuseLukasz Marek2013-07-17
| | | | | | | | | | FTP protocol used interrupt callback to simulate nonblock operation which is a misuse of this callback. This commit make FTP protocol fully blocking and removes invalid usage of interrutp callback Also adds support for multiline responses delimited with dashes
* ftp: add invalid code for RETR operationLukasz Marek2013-06-08
| | | | | | | | | 554 is possible invalid code: - Restart not valid - Command terminated due to server shutdown in progress - etc... Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* ftp: probe seek capabilityLukasz Marek2013-06-08
| | | | | | Make FTP streamed when server doesn't accept REST command Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* ftp: fix seeking beyond file sizeLukasz Marek2013-06-08
| | | | | | adjust to ff* tools seek nature Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* ftp: abort function optimalizationLukasz Marek2013-06-08
| | | | | | | | | It seems some ftp servers doesn't respect ABOR command, but closing both connection is slow. This commit keeps control connection open when possible. Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* ftp: explicit return code checksLukasz Marek2013-06-08
| | | | Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* ftp: fix flush control connection inputLukasz Marek2013-06-08
| | | | Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* ftp: reconnect on tcp read errorLukasz Marek2013-06-08
| | | | | | | This commit reconnect both connections and retries before ftp_read returns an error. Practical use case: resume after lock screen on iOS devices. Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* ftp: fix using uninitialized valueLukasz Marek2013-06-04
| | | | | | Fix coverity issue CID 1026777 Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* ftp: enhanced error handlingLukasz Marek2013-05-31
| | | | | Add error codes to expected codes to make responses faster. Success of a command is validated by comparing code to a success code.
* ftp: reconnect on seekLukasz Marek2013-05-31
| | | | | | | | | ABOR command usually takes long (FTP server implementation dependent). It also produces different response codes from different servers. It is save for ffmpeg to reconnect both connection during seek for two reasons: 1. Alreay mentioned heavy manner of ABOR command. 2. Server may disconnected due to no transfer (seek after a long pause in ffmpeg client)
* ftp: move common commands code to functionLukasz Marek2013-05-31
| | | | | Each send command routine requires the same steps. This commit moves repeated code into one function.
* ftp: enhanced status code handlingLukasz Marek2013-05-31
| | | | | | | Reimplementation of ftp_status function. New version requires explicit list of expected codes. It flush data connection input before sending a command and blocks until expected result appears.
* ftp: reconnect on readLukasz Marek2013-05-31
| | | | | | FTP server may disconnect after some period of time when no transfer is done. FTP protocol should reconnect and seek to last position.
* ftp: move create control connection to functionLukasz Marek2013-05-31
| | | | | | Move common code that opens control connection to function. This code can be reused when reconnecting to FTP server after inactivity.
* ftp: credentials moved into FTPContextLukasz Marek2013-05-31
| | | | | | FTP server may disconnect client. This commit stores credentials for future reconnect.
* ftp: rename function nameLukasz Marek2013-05-31
| | | | | | ftp_send_command was used only once. This commit makes this function specific, not generic
* ftp: formatting and typos fixesLukasz Marek2013-05-31
|
* ftp: favor strtoll over atollHendrik Leppkes2013-05-19
| | | | | | | | | Both strtoll and atoll have different names on MSVC, and strtoll has a compatibility layer in place for this case. Fixes compilation on MSVC. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* FTP protocol supportLukasz Marek2013-05-18
Implementation of ftp protocol. Fixes #1672 Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>