- some bugfixes for ftp transfer (i think multiple concurrent users now works properly)

This commit is contained in:
Mark Vejvoda
2011-01-17 07:19:32 +00:00
parent 281f489678
commit e967ac48fd
7 changed files with 325 additions and 102 deletions

View File

@@ -70,6 +70,8 @@ typedef struct
uint32_t timeLastCmd; ///< timestamp of last ftp activity (used for timeout generation)
socket_t ctrlSocket; ///< socket for control connection
socket_t passiveDataSocket; ///< listener socket for data connections in passive mode
ip_t passiveIp; ///< IP of the FTP Server from the clients perspective related to Passive connection
port_t passivePort; ///< Port of the FTP Server from the clients perspective related to Passive connection
transmission_S activeTrans; ///< infos about a currently active file/directory-transmission
}ftpSession_S;

View File

@@ -25,12 +25,12 @@
/**
* @brief max. possible simultaneous FTP client connections
*/
#define MAX_CONNECTIONS 60
#define MAX_CONNECTIONS 20
/**
* @brief max. possible user accounts
*/
#define MAX_USERS 20
#define MAX_USERS 10
/**
* @brief max. length of a user account name
@@ -58,7 +58,7 @@
* The scratch buffer is used for
* send / receive of files and directory listings
*/
#define LEN_SCRATCHBUF 1024
#define LEN_SCRATCHBUF 1024
/**
* @brief Size of the receive buffer for ftp commands