-
Notifications
You must be signed in to change notification settings - Fork 0
/
utils.h
62 lines (33 loc) · 1.09 KB
/
utils.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
//
// Created by masteryoda on 18-10-26.
//
#ifndef FTPSERVER_UTILS_H
#define FTPSERVER_UTILS_H
#include "global.h"
int parseArgs(int argc, const char *argv[]);
void parseCommand(char* arg);
char* processMsg(char* msg, int index);
int generateData(int state, int index);
void upper(char* string);
int removeDir(const char *dir);
int parseIP_PORT(char *ip_port, char* ip, int* port);
void initClients();
char* user(char* content, int index);
char* pass(char* content, int index);
char* retr(char* content, int index);
char* stor(char* content, int index);
char* quit(char* content, int index);
char* syst(char* content, int index);
char* type(char* content, int index);
char* port(char* content, int index);
char* pasv(char* content, int index);
char* mkd(char* content, int index);
char* cwd(char* content, int index);
char* pwd(char* content, int index);
char* list(char* content, int index);
char* rmd(char* content, int index);
char* rnfr(char* content, int index);
char* rnto(char* content, int index);
int sendFile(int index);
int sendList(int index);
#endif //FTPSERVER_UTILS_H