• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

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

Loweynet


Commit MetaInfo

Revisão8ef4e07fd1e721b0181b517444b4dffc859e9c09 (tree)
Hora2012-01-27 21:41:03
Autors_kawamoto <s_kawamoto@user...>
Commiters_kawamoto

Mensagem de Log

Enhance routines for extra commands.

Mudança Sumário

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/common.h
+++ b/common.h
@@ -1601,7 +1601,7 @@ int DoSIZE(SOCKET cSkt, char *Path, LONGLONG *Size, int *CancelCheckWork);
16011601 int DoMDTM(SOCKET cSkt, char *Path, FILETIME *Time, int *CancelCheckWork);
16021602 // 同時接続対応
16031603 //int DoQUOTE(char *CmdStr);
1604-int DoQUOTE(SOCKET cSkt, char *CmdStr);
1604+int DoQUOTE(SOCKET cSkt, char *CmdStr, int *CancelCheckWork);
16051605 SOCKET DoClose(SOCKET Sock);
16061606 int DoQUIT(SOCKET ctrl_skt);
16071607 int DoDirListCmdSkt(char *AddOpt, char *Path, int Num, int *CancelCheckWork);
--- a/connect.c
+++ b/connect.c
@@ -59,7 +59,7 @@
5959 static INT_PTR CALLBACK QuickConDialogCallBack(HWND hDlg, UINT iMessage, WPARAM wParam, LPARAM lParam);
6060 // 同時接続対応
6161 //static int SendInitCommand(char *Cmd);
62-static int SendInitCommand(SOCKET Socket, char *Cmd);
62+static int SendInitCommand(SOCKET Socket, char *Cmd, int *CancelCheckWork);
6363 static void AskUseFireWall(char *Host, int *Fire, int *Pasv, int *List);
6464 static void SaveCurrentSetToHistory(void);
6565 static int ReConnectSkt(SOCKET *Skt);
@@ -240,7 +240,7 @@ void ConnectProc(int Type, int Num)
240240 DispWindowTitle();
241241 SoundPlay(SND_CONNECT);
242242
243- SendInitCommand(CmdCtrlSocket, CurHost.InitCmd);
243+ SendInitCommand(CmdCtrlSocket, CurHost.InitCmd, &CancelFlg);
244244
245245 if(strlen(CurHost.LocalInitDir) > 0)
246246 {
@@ -611,7 +611,7 @@ void HistoryConnectProc(int MenuCmd)
611611 DispWindowTitle();
612612 SoundPlay(SND_CONNECT);
613613
614- SendInitCommand(CmdCtrlSocket, CurHost.InitCmd);
614+ SendInitCommand(CmdCtrlSocket, CurHost.InitCmd, &CancelFlg);
615615
616616 DoLocalCWD(CurHost.LocalInitDir);
617617 GetLocalDirForWnd();
@@ -650,7 +650,9 @@ void HistoryConnectProc(int MenuCmd)
650650 * cmd1\r\ncmd2\r\n\0
651651 *----------------------------------------------------------------------------*/
652652
653-static int SendInitCommand(SOCKET Socket, char *Cmd)
653+// 同時接続対応
654+//static int SendInitCommand(char *Cmd)
655+static int SendInitCommand(SOCKET Socket, char *Cmd, int *CancelCheckWork)
654656 {
655657 char Tmp[INITCMD_LEN+1];
656658 char *Pos;
@@ -661,7 +663,8 @@ static int SendInitCommand(SOCKET Socket, char *Cmd)
661663 if((Pos = strchr(Tmp, '\r')) != NULL)
662664 *Pos = NUL;
663665 if(strlen(Tmp) > 0)
664- DoQUOTE(Socket, Tmp);
666+// DoQUOTE(Tmp);
667+ DoQUOTE(Socket, Tmp, CancelCheckWork);
665668
666669 if((Cmd = strchr(Cmd, '\n')) != NULL)
667670 Cmd++;
@@ -1108,7 +1111,7 @@ int ReConnectTrnSkt(SOCKET *Skt, int *CancelCheckWork)
11081111 // if((*Skt = DoConnect(CurHost.HostAdrs, CurHost.UserName, CurHost.PassWord, CurHost.Account, CurHost.Port, CurHost.FireWall, NO, CurHost.Security)) != INVALID_SOCKET)
11091112 if((*Skt = DoConnect(&HostData, CurHost.HostAdrs, CurHost.UserName, CurHost.PassWord, CurHost.Account, CurHost.Port, CurHost.FireWall, NO, CurHost.Security, CancelCheckWork)) != INVALID_SOCKET)
11101113 {
1111- SendInitCommand(*Skt, CurHost.InitCmd);
1114+ SendInitCommand(*Skt, CurHost.InitCmd, CancelCheckWork);
11121115 // AskRemoteCurDir(Path, FMAX_PATH);
11131116 // DoCWD(Path, YES, YES, YES);
11141117 Sts = FFFTP_SUCCESS;
@@ -1150,7 +1153,7 @@ static int ReConnectSkt(SOCKET *Skt)
11501153 // if((*Skt = DoConnect(CurHost.HostAdrs, CurHost.UserName, CurHost.PassWord, CurHost.Account, CurHost.Port, CurHost.FireWall, NO, CurHost.Security)) != INVALID_SOCKET)
11511154 if((*Skt = DoConnect(&CurHost, CurHost.HostAdrs, CurHost.UserName, CurHost.PassWord, CurHost.Account, CurHost.Port, CurHost.FireWall, NO, CurHost.Security, &CancelFlg)) != INVALID_SOCKET)
11521155 {
1153- SendInitCommand(*Skt, CurHost.InitCmd);
1156+ SendInitCommand(*Skt, CurHost.InitCmd, &CancelFlg);
11541157 AskRemoteCurDir(Path, FMAX_PATH);
11551158 DoCWD(Path, YES, YES, YES);
11561159 Sts = FFFTP_SUCCESS;
--- a/ftpproc.c
+++ b/ftpproc.c
@@ -3075,7 +3075,7 @@ void SomeCmdProc(void)
30753075 {
30763076 // 同時接続対応
30773077 //DoQUOTE(Cmd);
3078- DoQUOTE(AskCmdCtrlSkt(), Cmd);
3078+ DoQUOTE(AskCmdCtrlSkt(), Cmd, &CancelFlg);
30793079 }
30803080 EnableUserOpe();
30813081 }
--- a/remote.c
+++ b/remote.c
@@ -470,12 +470,12 @@ int DoMDTM(SOCKET cSkt, char *Path, FILETIME *Time, int *CancelCheckWork)
470470
471471 // 同時接続対応
472472 //int DoQUOTE(char *CmdStr)
473-int DoQUOTE(SOCKET cSkt, char *CmdStr)
473+int DoQUOTE(SOCKET cSkt, char *CmdStr, int *CancelCheckWork)
474474 {
475- int Sts, CancelCheckWork;
475+ int Sts;
476476
477- CancelCheckWork = NO;
478- Sts = CommandProcTrn(cSkt, NULL, &CancelCheckWork, "%s", CmdStr);
477+// Sts = CommandProcCmd(NULL, "%s", CmdStr);
478+ Sts = CommandProcTrn(cSkt, NULL, CancelCheckWork, "%s", CmdStr);
479479
480480 if(Sts/100 >= FTP_CONTINUE)
481481 SoundPlay(SND_ERROR);
@@ -704,10 +704,10 @@ void SwitchOSSProc(void)
704704
705705 /* DoPWD でノード名の \ を保存するために OSSフラグも変更する */
706706 if(AskOSS() == YES) {
707- DoQUOTE(AskCmdCtrlSkt(), "GUARDIAN");
707+ DoQUOTE(AskCmdCtrlSkt(), "GUARDIAN", &CancelFlg);
708708 SetOSS(NO);
709709 } else {
710- DoQUOTE(AskCmdCtrlSkt(), "OSS");
710+ DoQUOTE(AskCmdCtrlSkt(), "OSS", &CancelFlg);
711711 SetOSS(YES);
712712 }
713713 /* Current Dir 再取得 */