version 1.206, 2021/01/08 02:44:14 |
version 1.207, 2021/03/31 22:16:34 |
|
|
#include "sftp-common.h" |
#include "sftp-common.h" |
#include "sftp-client.h" |
#include "sftp-client.h" |
|
|
#define DEFAULT_COPY_BUFLEN 32768 /* Size of buffer for up/download */ |
|
#define DEFAULT_NUM_REQUESTS 64 /* # concurrent outstanding requests */ |
|
|
|
/* File to read commands from */ |
/* File to read commands from */ |
FILE* infile; |
FILE* infile; |
|
|
|
|
extern int optind; |
extern int optind; |
extern char *optarg; |
extern char *optarg; |
struct sftp_conn *conn; |
struct sftp_conn *conn; |
size_t copy_buffer_len = DEFAULT_COPY_BUFLEN; |
size_t copy_buffer_len = 0; |
size_t num_requests = DEFAULT_NUM_REQUESTS; |
size_t num_requests = 0; |
long long limit_kbps = 0; |
long long limit_kbps = 0; |
|
|
/* Ensure that fds 0, 1 and 2 are open or directed to /dev/null */ |
/* Ensure that fds 0, 1 and 2 are open or directed to /dev/null */ |