- added more logging to see what client FTP port # will be

This commit is contained in:
Mark Vejvoda 2011-01-15 19:16:00 +00:00
parent e6f69a3839
commit 934b430f93
3 changed files with 6 additions and 0 deletions

View File

@ -392,6 +392,8 @@ MenuStateConnectedGame::MenuStateConnectedGame(Program *program, MainMenu *mainM
//int portNumber = config.getInt("FTPServerPort",intToStr(ServerSocket::getFTPServerPort()).c_str());
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);
std::pair<string,string> mapsPath;
if(mapPathList.size() > 0) {

View File

@ -561,6 +561,8 @@ void MenuStateJoinGame::connectToServer() {
}
if( clientInterface->isConnected() == 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;
clientInterface->stopServerDiscovery();
mainMenu->setState(new MenuStateConnectedGame(program, mainMenu));

View File

@ -194,6 +194,8 @@ FTPClientThread::FTPClientThread(int portNumber, string serverUrl, std::pair<str
this->mapsPath = mapsPath;
this->tilesetsPath = tilesetsPath;
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() {