summaryrefslogtreecommitdiffstats
path: root/espFtpServer.h
diff options
context:
space:
mode:
authorDaniel Plasa <dplasa@gmail.com>2020-05-26 18:30:45 +0200
committerDaniel Plasa <dplasa@gmail.com>2020-05-26 18:30:45 +0200
commit49bde8258108057cff01dcef0c36d640373e2e79 (patch)
treee5edec8cd61df53fe928100f896b17694af1166f /espFtpServer.h
parentfix typo (diff)
downloadFTPCLientServer-49bde8258108057cff01dcef0c36d640373e2e79.tar
FTPCLientServer-49bde8258108057cff01dcef0c36d640373e2e79.tar.gz
FTPCLientServer-49bde8258108057cff01dcef0c36d640373e2e79.tar.bz2
FTPCLientServer-49bde8258108057cff01dcef0c36d640373e2e79.tar.lz
FTPCLientServer-49bde8258108057cff01dcef0c36d640373e2e79.tar.xz
FTPCLientServer-49bde8258108057cff01dcef0c36d640373e2e79.tar.zst
FTPCLientServer-49bde8258108057cff01dcef0c36d640373e2e79.zip
Diffstat (limited to 'espFtpServer.h')
-rw-r--r--espFtpServer.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/espFtpServer.h b/espFtpServer.h
index a9f8d56..d4b3f44 100644
--- a/espFtpServer.h
+++ b/espFtpServer.h
@@ -51,7 +51,7 @@
#define FTP_DEBUG_MSG(...)
#endif
-#define FTP_SERVER_VERSION "0.9.2-20200526"
+#define FTP_SERVER_VERSION "0.9.3-20200526"
#define FTP_CTRL_PORT 21 // Command port on wich server is listening
#define FTP_DATA_PORT_PASV 50009 // Data port in passive mode
@@ -105,10 +105,10 @@ private:
bool doStore();
void closeTransfer();
void abortTransfer();
- int32_t allocateBuffer(int32_t desiredBytes);
+ uint16_t allocateBuffer(uint16_t desiredBytes);
void freeBuffer();
- String getPathName(const String& param, bool includeLast = false);
+ String getPathName(const String &param, bool includeLast = false);
String getFileName(const String &param, bool fullFilePath = false);
String makeDateTimeStr(time_t fileTime);
int8_t readChar();
@@ -124,12 +124,12 @@ private:
uint16_t dataPort = // holds our PASV port number or the port number provided by PORT
FTP_DATA_PORT_PASV;
- uint32_t command; // numeric command code of command sent by the client
- String cmdLine; // command line as read from client
- String cmdString; // command as textual representation
- String parameters; // parameters sent by client
- String cwd; // the current directory
- String rnFrom; // previous command was RNFR, this is the source file name
+ uint32_t command; // numeric command code of command sent by the client
+ String cmdLine; // command line as read from client
+ String cmdString; // command as textual representation
+ String parameters; // parameters sent by client
+ String cwd; // the current directory
+ String rnFrom; // previous command was RNFR, this is the source file name
internalState cmdState, // state of ftp control connection
transferState; // state of ftp data connection
@@ -139,7 +139,7 @@ private:
millisBeginTrans, // store time of beginning of a transaction
bytesTransfered; //
uint8_t *fileBuffer = NULL; // pointer to buffer for file transfer (by allocateBuffer)
- int32_t fileBufferSize; // size of buffer
+ uint16_t fileBufferSize; // size of buffer
String _FTP_USER; // usename
String _FTP_PASS; // password
};