- added more logging to see what client FTP port # will be
This commit is contained in:
parent
e6f69a3839
commit
934b430f93
|
@ -392,6 +392,8 @@ MenuStateConnectedGame::MenuStateConnectedGame(Program *program, MainMenu *mainM
|
||||||
//int portNumber = config.getInt("FTPServerPort",intToStr(ServerSocket::getFTPServerPort()).c_str());
|
//int portNumber = config.getInt("FTPServerPort",intToStr(ServerSocket::getFTPServerPort()).c_str());
|
||||||
int portNumber = clientInterface->getServerFTPPort();
|
int portNumber = clientInterface->getServerFTPPort();
|
||||||
|
|
||||||
|
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line %d] Using FTP port #: %d\n",__FILE__,__FUNCTION__,__LINE__,portNumber);
|
||||||
|
|
||||||
vector<string> mapPathList = config.getPathListForType(ptMaps);
|
vector<string> mapPathList = config.getPathListForType(ptMaps);
|
||||||
std::pair<string,string> mapsPath;
|
std::pair<string,string> mapsPath;
|
||||||
if(mapPathList.size() > 0) {
|
if(mapPathList.size() > 0) {
|
||||||
|
|
|
@ -561,6 +561,8 @@ void MenuStateJoinGame::connectToServer() {
|
||||||
}
|
}
|
||||||
if( clientInterface->isConnected() == true &&
|
if( clientInterface->isConnected() == true &&
|
||||||
clientInterface->getIntroDone() == true) {
|
clientInterface->getIntroDone() == true) {
|
||||||
|
|
||||||
|
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line %d] Using FTP port #: %d\n",__FILE__,__FUNCTION__,__LINE__,clientInterface->getServerFTPPort());
|
||||||
abortAutoFind = true;
|
abortAutoFind = true;
|
||||||
clientInterface->stopServerDiscovery();
|
clientInterface->stopServerDiscovery();
|
||||||
mainMenu->setState(new MenuStateConnectedGame(program, mainMenu));
|
mainMenu->setState(new MenuStateConnectedGame(program, mainMenu));
|
||||||
|
|
|
@ -194,6 +194,8 @@ FTPClientThread::FTPClientThread(int portNumber, string serverUrl, std::pair<str
|
||||||
this->mapsPath = mapsPath;
|
this->mapsPath = mapsPath;
|
||||||
this->tilesetsPath = tilesetsPath;
|
this->tilesetsPath = tilesetsPath;
|
||||||
this->pCBObject = pCBObject;
|
this->pCBObject = pCBObject;
|
||||||
|
|
||||||
|
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line %d] Using FTP port #: %d, serverUrl [%s]\n",__FILE__,__FUNCTION__,__LINE__,portNumber,serverUrl.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
void FTPClientThread::signalQuit() {
|
void FTPClientThread::signalQuit() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user