📄 myftp_state_machine.h
字号:
#ifndef _MYFTP_STATE_MACHINE_H
#define _MYFTP_STATE_MACHINE_H
#include "myftp_session.h"
//命令处理状态机
typedef struct cmd_handle_state
{
char* cmd;
int (*cmd_handler)(pMYFTP_SESSION p_thesession);
}CMD_HANDLE_STATE,*pCMD_HANDLE_STATE;
int myftp_state_machine_entry(pMYFTP_SESSION p_thesession);
int myftp_cmd_handle_user(pMYFTP_SESSION p_thesession);
int myftp_cmd_handle_pass(pMYFTP_SESSION p_thesession);
int myftp_cmd_handle_cwd(pMYFTP_SESSION p_thesession);
int myftp_cmd_handle_xcwd(pMYFTP_SESSION p_thesession);
int myftp_cmd_handle_cdup(pMYFTP_SESSION p_thesession);
int myftp_cmd_handle_quit(pMYFTP_SESSION p_thesession);
int myftp_cmd_handle_rein(pMYFTP_SESSION p_thesession);
int myftp_cmd_handle_port(pMYFTP_SESSION p_thesession);
int myftp_cmd_handle_pasv(pMYFTP_SESSION p_thesession);
int myftp_cmd_handle_type(pMYFTP_SESSION p_thesession);
int myftp_cmd_handle_mode(pMYFTP_SESSION p_thesession);
int myftp_cmd_handle_retr(pMYFTP_SESSION p_thesession);
int myftp_cmd_handle_stor(pMYFTP_SESSION p_thesession);
int myftp_cmd_handle_appe(pMYFTP_SESSION p_thesession);
int myftp_cmd_handle_rest(pMYFTP_SESSION p_thesession);
int myftp_cmd_handle_rnfr(pMYFTP_SESSION p_thesession);
int myftp_cmd_handle_rnto(pMYFTP_SESSION p_thesession);
int myftp_cmd_handle_abor(pMYFTP_SESSION p_thesession);
int myftp_cmd_handle_dele(pMYFTP_SESSION p_thesession);
int myftp_cmd_handle_rmd(pMYFTP_SESSION p_thesession);
int myftp_cmd_handle_xrmd(pMYFTP_SESSION p_thesession);
int myftp_cmd_handle_pwd(pMYFTP_SESSION p_thesession);
int myftp_cmd_handle_xpwd(pMYFTP_SESSION p_thesession);
int myftp_cmd_handle_mkd(pMYFTP_SESSION p_thesession);
int myftp_cmd_handle_xmkd(pMYFTP_SESSION p_thesession);
int myftp_cmd_handle_list(pMYFTP_SESSION p_thesession);
int myftp_cmd_handle_nlst(pMYFTP_SESSION p_thesession);
int myftp_cmd_handle_syst(pMYFTP_SESSION p_thesession);
int myftp_cmd_handle_stat(pMYFTP_SESSION p_thesession);
int myftp_cmd_handle_size(pMYFTP_SESSION p_thesession);
int myftp_cmd_handle_help(pMYFTP_SESSION p_thesession);
int myftp_cmd_handle_noop(pMYFTP_SESSION p_thesession);
/*信号处理状态机*/
extern CMD_HANDLE_STATE cmd_state_list[33];
#endif /*_MYFTP_STATE_MACHINE_H*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -