mirror of
https://github.com/glest/glest-source.git
synced 2025-09-27 07:59:00 +02:00
- added ftp port # as an ini setting and added to UPNP for router auto-config
- added new language string for message box to prompt map file downloads
This commit is contained in:
@@ -39,6 +39,7 @@ public:
|
||||
class FTPClientThread : public BaseThread
|
||||
{
|
||||
protected:
|
||||
int portNumber;
|
||||
string serverUrl;
|
||||
FTPClientCallbackInterface *pCBObject;
|
||||
std::pair<string,string> mapsPath;
|
||||
@@ -49,7 +50,7 @@ protected:
|
||||
|
||||
public:
|
||||
|
||||
FTPClientThread(string serverUrl, std::pair<string,string> mapsPath, FTPClientCallbackInterface *pCBObject);
|
||||
FTPClientThread(int portNumber,string serverUrl, std::pair<string,string> mapsPath, FTPClientCallbackInterface *pCBObject);
|
||||
virtual void execute();
|
||||
virtual void signalQuit();
|
||||
virtual bool shutdownAndWait();
|
||||
|
@@ -30,10 +30,11 @@ class FTPServerThread : public BaseThread
|
||||
{
|
||||
protected:
|
||||
std::pair<string,string> mapsPath;
|
||||
int portNumber;
|
||||
|
||||
public:
|
||||
|
||||
FTPServerThread(std::pair<string,string> mapsPath);
|
||||
FTPServerThread(std::pair<string,string> mapsPath, int portNumber);
|
||||
virtual void execute();
|
||||
virtual void signalQuit();
|
||||
virtual bool shutdownAndWait();
|
||||
|
@@ -212,6 +212,9 @@ public:
|
||||
static void setExternalPort(int port) { externalPort = port; }
|
||||
static int getExternalPort() { return externalPort; }
|
||||
|
||||
static void setFTPServerPort(int port) { ftpServerPort = port; }
|
||||
static int getFTPServerPort() { return ftpServerPort; }
|
||||
|
||||
virtual void disconnectSocket();
|
||||
|
||||
void NETdiscoverUPnPDevices();
|
||||
@@ -222,6 +225,7 @@ protected:
|
||||
int boundPort;
|
||||
|
||||
static int externalPort;
|
||||
static int ftpServerPort;
|
||||
|
||||
static bool enabledUPNP;
|
||||
|
||||
@@ -230,10 +234,10 @@ protected:
|
||||
bool isBroadCastThreadRunning();
|
||||
|
||||
static int upnp_init(void *param);
|
||||
static bool upnp_add_redirect(int ports[2]);
|
||||
static bool upnp_add_redirect(int ports[4]);
|
||||
static void upnp_rem_redirect(int ext_port);
|
||||
|
||||
void NETaddRedirects(int ports[2]);
|
||||
void NETaddRedirects(int ports[4]);
|
||||
void NETremRedirects(int ext_port);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user