mirror of
https://github.com/glest/glest-source.git
synced 2025-08-10 18:34:05 +02:00
- Added tileset and map CRC check in the network lobby
- numerous bugfixes
This commit is contained in:
@@ -137,21 +137,22 @@ int ftpState(void)
|
||||
* all received control-strings are dispatched to the command-module.
|
||||
* Note, the function blocks if there is nothing to do.
|
||||
*/
|
||||
void ftpExecute(void)
|
||||
{
|
||||
int n;
|
||||
int socksRdy;
|
||||
ftpSession_S *pSession;
|
||||
int sessionId;
|
||||
int activeJobs;
|
||||
|
||||
int ftpExecute(void)
|
||||
{
|
||||
int processedWork=0;
|
||||
int n=0;
|
||||
int socksRdy=0;
|
||||
ftpSession_S *pSession=NULL;
|
||||
int sessionId=0;
|
||||
int activeJobs=0;
|
||||
|
||||
activeJobs = ftpGetActiveTransCnt(); // are there any active transmitions?
|
||||
for(n = 0; (activeJobs > 0) && (n < MAX_CONNECTIONS); n++)
|
||||
{
|
||||
pSession = ftpGetSession(n);
|
||||
if(pSession->activeTrans.op) // has this session an active transmition?
|
||||
{
|
||||
{
|
||||
processedWork = 1;
|
||||
ftpExecTransmission(n); // do the job
|
||||
activeJobs--;
|
||||
}
|
||||
@@ -162,7 +163,8 @@ void ftpExecute(void)
|
||||
//else
|
||||
// socksRdy = ftpSelect(FALSE);
|
||||
if(socksRdy > 0)
|
||||
{
|
||||
{
|
||||
processedWork = 1;
|
||||
if(ftpTestSocket(server)) // server listner-socket signaled?
|
||||
{
|
||||
socket_t clientSocket;
|
||||
@@ -222,7 +224,9 @@ if(VERBOSE_MODE_ENABLED) printf("Connection refused; Session limit reached.\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return processedWork;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user