- plenty of code cleanup (some refactoring of socket / UPNP code)

- FTP console output now only shows when --verbose used
This commit is contained in:
Mark Vejvoda
2010-12-31 08:21:26 +00:00
parent bd12b10e29
commit d176053da9
12 changed files with 198 additions and 291 deletions

View File

@@ -62,7 +62,6 @@ typedef struct
char rxBuf[LEN_RXBUF]; ///< receive buffer for ftp commands
char workingDir[MAX_PATH_LEN]; ///< current working directory (absolute path which is relative to the root-path of the user account)
ip_t remoteIp; ///< IP of connected ftp client
//ip_t remoteFTPServerIp; ///< IP of the FTP Server from the clients perspective
port_t remoteFTPServerPassivePort; ///< Port of the FTP Server from the clients perspective related to Passive connection
port_t remotePort; ///< Port of connected ftp client for control connection
port_t remoteDataPort; ///< Port of connected ftp client for data connection

View File

@@ -25,22 +25,22 @@
/**
* @brief max. possible simultaneous FTP client connections
*/
#define MAX_CONNECTIONS 10
#define MAX_CONNECTIONS 16
/**
* @brief max. possible user accounts
*/
#define MAX_USERS 10
#define MAX_USERS 16
/**
* @brief max. length of a user account name
*/
#define MAXLEN_USERNAME 10
#define MAXLEN_USERNAME 25
/**
* @brief max. length of a user account password
*/
#define MAXLEN_PASSWORD 10
#define MAXLEN_PASSWORD 25
/**
* @brief session timeout in seconds
@@ -76,7 +76,7 @@
/**
* @brief set to 1 to activate debug messages on stdout
*/
#define DBG_LOG 1
//#define DBG_LOG 1
/**
* @brief set to 1 if target-plattform supports ANSI-C file-IO functions

View File

@@ -63,6 +63,6 @@ typedef uint16_t port_t;
ip_t (*ftpFindExternalFTPServerIp)(ip_t clientIp);
void (*ftpAddUPNPPortForward)(int internalPort, int externalPort);
void (*ftpRemoveUPNPPortForward)(int internalPort, int externalPort);
int VERBOSE_MODE_ENABLED;
#endif