• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

FFFTPのソースコードです。


Commit MetaInfo

Revision90ca90ca4f2d8b3b2a0061c169206d7ccd5ff472 (tree)
Zeit2013-02-21 16:14:03
Autors_kawamoto <s_kawamoto@user...>
Commiters_kawamoto

Log Message

Fix bugs of sending commands for keep alive.

Ändern Zusammenfassung

Diff

Binary files a/FFFTP_Eng_Release/FFFTP.exe and b/FFFTP_Eng_Release/FFFTP.exe differ
Binary files a/Release/FFFTP.exe and b/Release/FFFTP.exe differ
--- a/main.c
+++ b/main.c
@@ -953,7 +953,10 @@ static LRESULT CALLBACK FtpWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARA
953953 }
954954 }
955955 if(NoopEnable == YES && AskNoopInterval() > 0 && time(NULL) - LastDataConnectionTime >= AskNoopInterval())
956+ {
956957 NoopProc(NO);
958+ LastDataConnectionTime = time(NULL);
959+ }
957960 break;
958961 }
959962 break;
--- a/remote.c
+++ b/remote.c
@@ -300,7 +300,10 @@ int DoMKD(char *Path)
300300
301301 // 自動切断対策
302302 if(CancelFlg == NO && AskNoopInterval() > 0 && time(NULL) - LastDataConnectionTime >= AskNoopInterval())
303+ {
303304 NoopProc(YES);
305+ LastDataConnectionTime = time(NULL);
306+ }
304307
305308 return(Sts/100);
306309 }
@@ -328,7 +331,10 @@ int DoRMD(char *Path)
328331
329332 // 自動切断対策
330333 if(CancelFlg == NO && AskNoopInterval() > 0 && time(NULL) - LastDataConnectionTime >= AskNoopInterval())
334+ {
331335 NoopProc(YES);
336+ LastDataConnectionTime = time(NULL);
337+ }
332338
333339 return(Sts/100);
334340 }
@@ -356,7 +362,10 @@ int DoDELE(char *Path)
356362
357363 // 自動切断対策
358364 if(CancelFlg == NO && AskNoopInterval() > 0 && time(NULL) - LastDataConnectionTime >= AskNoopInterval())
365+ {
359366 NoopProc(YES);
367+ LastDataConnectionTime = time(NULL);
368+ }
360369
361370 return(Sts/100);
362371 }
@@ -389,7 +398,10 @@ int DoRENAME(char *Src, char *Dst)
389398
390399 // 自動切断対策
391400 if(CancelFlg == NO && AskNoopInterval() > 0 && time(NULL) - LastDataConnectionTime >= AskNoopInterval())
401+ {
392402 NoopProc(YES);
403+ LastDataConnectionTime = time(NULL);
404+ }
393405
394406 return(Sts/100);
395407 }
@@ -418,7 +430,10 @@ int DoCHMOD(char *Path, char *Mode)
418430
419431 // 自動切断対策
420432 if(CancelFlg == NO && AskNoopInterval() > 0 && time(NULL) - LastDataConnectionTime >= AskNoopInterval())
433+ {
421434 NoopProc(YES);
435+ LastDataConnectionTime = time(NULL);
436+ }
422437
423438 return(Sts/100);
424439 }