mirror of
https://github.com/glest/glest-source.git
synced 2025-08-11 19:04:00 +02:00
- initial work for tileset ftp transfers, needs some testing
This commit is contained in:
@@ -44,20 +44,29 @@ protected:
|
||||
string serverUrl;
|
||||
FTPClientCallbackInterface *pCBObject;
|
||||
std::pair<string,string> mapsPath;
|
||||
std::pair<string,string> tilesetsPath;
|
||||
|
||||
Mutex mutexMapFileList;
|
||||
vector<string> mapFileList;
|
||||
|
||||
Mutex mutexTilesetList;
|
||||
vector<string> tilesetList;
|
||||
|
||||
void getMapFromServer(string mapFilename);
|
||||
FTP_Client_ResultType getMapFromServer(string mapFileName, string ftpUser, string ftpUserPassword);
|
||||
|
||||
void getTilesetFromServer(string tileSetName);
|
||||
FTP_Client_ResultType getTilesetFromServer(string tileSetName, string tileSetNameSubfolder, string ftpUser, string ftpUserPassword);
|
||||
|
||||
public:
|
||||
|
||||
FTPClientThread(int portNumber,string serverUrl, std::pair<string,string> mapsPath, FTPClientCallbackInterface *pCBObject);
|
||||
FTPClientThread(int portNumber,string serverUrl, std::pair<string,string> mapsPath, std::pair<string,string> tilesetsPath, FTPClientCallbackInterface *pCBObject);
|
||||
virtual void execute();
|
||||
virtual void signalQuit();
|
||||
virtual bool shutdownAndWait();
|
||||
|
||||
void addMapToRequests(string mapFilename);
|
||||
void addTilesetToRequests(string tileSetName);
|
||||
};
|
||||
|
||||
}}//end namespace
|
||||
|
@@ -31,12 +31,12 @@ class FTPServerThread : public BaseThread
|
||||
{
|
||||
protected:
|
||||
std::pair<string,string> mapsPath;
|
||||
std::pair<string,string> tilesetsPath;
|
||||
int portNumber;
|
||||
//uint32 externalIp;
|
||||
|
||||
public:
|
||||
|
||||
FTPServerThread(std::pair<string,string> mapsPath, int portNumber);
|
||||
FTPServerThread(std::pair<string,string> mapsPath, std::pair<string,string> tilesetsPath, int portNumber);
|
||||
~FTPServerThread();
|
||||
virtual void execute();
|
||||
virtual void signalQuit();
|
||||
|
Reference in New Issue
Block a user