/*************************************************************************** * Copyright (C) 2004 by Johnny Mast * * rave@linux * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ #ifndef inc_me #define inc_me /* Space age commands like EPVS/EPRT are not yet supported by rftpd */ //enum { /* Login commands */ // USER, PASS, /* Simple file system Commands */ // CWD, DELE, MDTM, MKD, PWD, RMD, RNFR, RNTO, SIZE, CDUP, /* Data commands */ // LIST, NLST, APPE, ABOR, PASV, PORT, RETR, STOR, MODE, STOU,STRU, EPSV, EPRT, REST, /* Service commands */ // SITE, TYPE, ACCT, HELP, NOOP, REIN, STAT, SYST, FEAT, /* Logout command */ // QUIT }; /* char *ftp_command [] = { "USER","PASS", "CWD","DELE","MDTM","MKD", "PWD", "RMD", "RNFR", "RNTO", "SIZE", "CDUP","LIST", "NLST", "APPE", "ABOR", "PASV", "PORT", "RETR", "STOR", "MODE", "STOU","STRU", "EPSV", "EPRT", "REST", "SITE", "TYPE", "ACCT", "HELP", "NOOP", "REIN", "STAT","SYST", "FEAT", "QUIT" }; */ #define RNFR 0 #define RNTO 1 #define NUM_COMMANDS SYST #define MSG_WELCOME "220 rftpd server (Default Installation.)\r\n" #define MSG_NOOP_OK "200 NOOP command OK\r\n" #define MSG_REIN_OK "220 system ready for new user\r\n" #define MSG_FILE_NFOUND "550 File not found.\r\n" #define MSG_CWD_OK "250 Directory successfully changed.\r\n" #define MSG_RNFR_OK "350 Ready for RNTO.\r\n" #define MSG_SIZE_FAIL "550 Could not get file size.\r\n" #define MSG_TYPE_BAD "500 Bad Type Command.\r\n" #define MSG_TYPE_ASCII "200 Switching to ASCII mode.\r\n" #define MSG_TYPE_BIN "200 Switching to Binary mode.\r\n" #define MSG_BAD_REST "550 Bad REST command\r\n" #define MSG_PORT_OK "200 PORT command successful.\r\n" #define MSG_PORT_FAIL "500 Illegal PORT command.\r\n" #define MSG_EPSV_BAD "500 Bad EPSV protocol.\r\n" #define MSG_FSEND_OK "226 File send OK.\r\n" #define MSG_FRECV_OK "226 File receive successfull.\r\n" #define MSG_READY_DATA "150 Ok to send data.\r\n" #define MSG_CMD_NINC "202 Command not yet implented\r\n" #define MSG_TRANF_OK "266 Transfer ok\r\n" #define MSG_DIRS_OK "226 Directory send OK.\r\n" #define MSG_FOPEN_FAIL "550 Failed to open file.\r\n" #define MSG_CMD_BAD "500 Syntax error, command unrecognized.\r\n" #define MSG_QUIT "221 Logout.\r\n" #endif