mirror of
https://github.com/glest/glest-source.git
synced 2025-08-30 03:09:49 +02:00
- attempt to let user know when host does not have data port open
This commit is contained in:
@@ -30,7 +30,8 @@ enum FTP_Client_ResultType {
|
||||
ftp_crt_SUCCESS = 0,
|
||||
ftp_crt_PARTIALFAIL = 1,
|
||||
ftp_crt_FAIL = 2,
|
||||
ftp_crt_ABORTED = 3
|
||||
ftp_crt_ABORTED = 3,
|
||||
ftp_crt_HOST_NOT_ACCEPTING = 4
|
||||
};
|
||||
|
||||
enum FTP_Client_CallbackType {
|
||||
|
@@ -338,6 +338,9 @@ pair<FTP_Client_ResultType,string> FTPClientThread::getMapFromServer(pair<string
|
||||
if(res == CURLE_PARTIAL_FILE) {
|
||||
result.first = ftp_crt_PARTIALFAIL;
|
||||
}
|
||||
else if(res == CURLE_COULDNT_CONNECT) {
|
||||
result.first = ftp_crt_HOST_NOT_ACCEPTING;
|
||||
}
|
||||
}
|
||||
else {
|
||||
result.first = ftp_crt_SUCCESS;
|
||||
@@ -931,6 +934,10 @@ pair<FTP_Client_ResultType,string> FTPClientThread::getFileFromServer(FTP_Clien
|
||||
if(res == CURLE_PARTIAL_FILE || ftpfile.isValidXfer == true) {
|
||||
result.first = ftp_crt_PARTIALFAIL;
|
||||
}
|
||||
else if(res == CURLE_COULDNT_CONNECT) {
|
||||
result.first = ftp_crt_HOST_NOT_ACCEPTING;
|
||||
}
|
||||
|
||||
|
||||
if(destRootFolder != "") {
|
||||
if(pathCreated == true) {
|
||||
|
Reference in New Issue
Block a user