-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommand.h
More file actions
26 lines (25 loc) · 894 Bytes
/
Copy pathcommand.h
File metadata and controls
26 lines (25 loc) · 894 Bytes
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
//
// Created by 邱俣涵 on 2021/10/4.
//
#ifndef FTP_SERVER_COMMAND_H
#define FTP_SERVER_COMMAND_H
#include "IO.h"
#include "utils.h"
#include <arpa/inet.h>
int handle_USER(User* user,char* sentence);
int handle_PASS(User* user,char* sentence);
int handle_SYST(User *user, char* sentence);
int handle_PORT(User *user, char*sentence);
int handle_PASV(User* user, char* sentence);
int handle_RETR(User* user, char* sentence);
int handle_TYPE(User* user, char* sentence);
int handle_STOR(User* user, char* sentence);
int handle_QUIT(User* user, char*sentence);
int handle_LIST(User* user, char* sentence);
int handle_MKD(User* user, char* sentence);
int handle_PWD(User*user, char*sentence);
int handle_CWD(User*user, char* sentence);
int handle_RMD(User*user, char* sentence);
int handle_RNFR(User*user, char*sentence);
int handle_RNTO(User*user, char*sentence);
#endif //FTP_SERVER_COMMAND_H