Implements members of the FTP class which wraps the ftp executable into a programmatic interface. More...
#include <cxxtls/ftp.h>
#include <cxxtls/strtool.h>
#include <cxxtls/simple_regex.h>
#include <stdlib.h>
#include <portable_io.h>
#include <string.h>
#include <signal.h>
Go to the source code of this file.
Namespaces | |
namespace | cxxtls |
The namespace that encapsulates most of the functionality in the CXX toolkit. | |
Functions | |
static string | binary ("binary ") |
static string | cd ("cd ") |
void | child_alarm_handler (int signum) |
static string | cparen (" ) ") |
static string | delf ("del ") |
static string | dir ("dir ") |
static string | echo ("echo ") |
static string | eol ("\n") |
static string | ftp (" | ftp -n 2>/dev/null ") |
static string | getf ("get ") |
static bool | is_ftp_dir_line (char const *buffer) |
static bool | is_ftp_error (char const *line) |
This function is used to determine if a string, presumed to be a line of text output by ftp, is an error message. If it is, this function sets the 'error_text' variable and returns true. Otherwise it returns false. | |
static string | oparen (" ( ") |
static string | open ("open ") |
static string | putf ("put ") |
static string | quit ("quit ") |
static string | semic (" ; ") |
static string | sh ("sh -c '") |
static string | space (" ") |
static string | star ("*") |
static string | user ("user ") |
Variables | |
static int | child_alarm_occurred = 0 |
static string | error_text |
static FILE * | ftplog = 0 |
Implements members of the FTP class which wraps the ftp executable into a programmatic interface.
Definition in file ftp.cxx.