forked from rovinbhandari/FTP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
client_ftp.h
35 lines (28 loc) · 1.09 KB
/
client_ftp.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#include <commons.h>
#include <file_transfer_functions.h>
#define IPSERVER "127.0.0.1"
#define ID "CLIENT=> "
#define LENUSERINPUT 1024
struct command
{
short int id;
int npaths;
char** paths;
};
struct command* userinputtocommand(char [LENUSERINPUT]);
void printcommand(struct command*);
void command_pwd(struct packet*, struct packet*, int);
void command_lcd(char*);
void command_cd(struct packet*, struct packet*, int, char*);
void command_lls(char*);
void command_ls(struct packet*, struct packet*, int);
void command_get(struct packet*, struct packet*, int, char*);
void command_put(struct packet*, struct packet*, int, char*);
void command_mget(struct packet*, struct packet*, int, int, char**);
void command_mput(struct packet*, struct packet*, int, int, char**);
void command_mgetwild(struct packet*, struct packet*, int);
void command_mputwild(struct packet*, struct packet*, int, char*);
void command_lmkdir(char*);
void command_mkdir(struct packet*, struct packet*, int, char*);
void command_rget(struct packet*, struct packet*, int);
void command_rput(struct packet*, struct packet*, int);