|
Dillo v3.2.0-93-g6a586845
|
#include <unistd.h>#include <sys/types.h>#include <sys/socket.h>#include <sys/un.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <signal.h>#include <sys/wait.h>#include <errno.h>#include <sys/time.h>#include <ctype.h>#include "../dpip/dpip.h"#include "dpiutil.h"#include "d_size.h"
Go to the source code of this file.
Macros | |
| #define | _MSG(...) |
| #define | MSG(...) printf("[ftp dpi]: " __VA_ARGS__) |
| #define | MIN_SZ 256 |
| #define | READ_SZ 16*1024 |
Functions | |
| static int | a_Misc_get_content_type_from_data2 (void *Data, size_t Size, const char **PT) |
| static void | make_wget_argv (char *url) |
| static int | try_ftp_transfer (char *url) |
| int | main (int argc, char **argv) |
Variables | |
| static Dsh * | sh = NULL |
| static char ** | dl_argv = NULL |
| static const ContentType_t | MimeTypes [] |
| #define MIN_SZ 256 |
| #define READ_SZ 16*1024 |
|
static |
Definition at line 90 of file ftp.c.
References dIsspace, dStrnAsciiCasecmp(), MimeTypes, and MIN.
Referenced by try_ftp_transfer().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 278 of file ftp.c.
References a_Dpip_build_cmd(), a_Dpip_check_auth(), a_Dpip_dsh_close(), a_Dpip_dsh_free(), a_Dpip_dsh_new(), a_Dpip_dsh_printf, a_Dpip_dsh_read_token(), a_Dpip_dsh_write_str(), a_Dpip_get_attr(), dFree(), dStrconcat(), dStrdup(), dStrerror, MSG, sh, and try_ftp_transfer().
|
static |
Definition at line 152 of file ftp.c.
References dFree(), dl_argv, dNew, Escape_uri_str(), and Filter_smtp_hack().
Referenced by try_ftp_transfer().
|
static |
Definition at line 177 of file ftp.c.
References a_Dpip_build_cmd(), a_Dpip_dsh_write(), a_Dpip_dsh_write_str(), a_Misc_get_content_type_from_data2(), dFree(), dl_argv, dStr_append_l(), dStr_free(), dStr_sized_new(), dStr_truncate(), dStrerror, Dstr::len, make_wget_argv(), MIN_SZ, MSG, READ_SZ, sh, and Dstr::str.
Referenced by main().
|
static |
Definition at line 60 of file ftp.c.
Referenced by make_wget_argv(), and try_ftp_transfer().
|
static |
Definition at line 70 of file ftp.c.
Referenced by a_Misc_get_content_type_from_data2().
|
static |
Definition at line 59 of file ftp.c.
Referenced by main(), and try_ftp_transfer().