OSDN Git Service

Enlarge buffers for replies on transferring files.
[ffftp/ffftp.git] / history.c
index 3f535df..8bd01e1 100644 (file)
--- a/history.c
+++ b/history.c
@@ -28,6 +28,8 @@
 /============================================================================*/\r
 \r
 #define  STRICT\r
+// IPv6対応\r
+#include <winsock2.h>\r
 #include <windows.h>\r
 #include <stdio.h>\r
 #include <stdlib.h>\r
@@ -37,7 +39,8 @@
 #include <windowsx.h>\r
 #include <commctrl.h>\r
 #include <stdarg.h>\r
-#include <winsock.h>\r
+// IPv6対応\r
+//#include <winsock.h>\r
 \r
 #include "common.h"\r
 #include "resource.h"\r
@@ -231,10 +234,16 @@ static void CopyHostToHistory(HOSTDATA *Host, HISTORYDATA *New)
        strcpy(New->PrivateKey, Host->PrivateKey);\r
        // 同時接続対応\r
        New->MaxThreadCount = Host->MaxThreadCount;\r
+       New->ReuseCmdSkt = Host->ReuseCmdSkt;\r
        // MLSD対応\r
        New->UseMLSD = Host->UseMLSD;\r
        // IPv6対応\r
-       New->UseIPv6 = Host->UseIPv6;\r
+       New->NetType = Host->NetType;\r
+       // 自動切断対策\r
+       New->NoopInterval = Host->NoopInterval;\r
+       // 再転送対応\r
+       New->TransferErrorMode = Host->TransferErrorMode;\r
+       New->TransferErrorNotify = Host->TransferErrorNotify;\r
        return;\r
 }\r
 \r
@@ -292,10 +301,16 @@ void CopyHistoryToHost(HISTORYDATA *Hist, HOSTDATA *Host)
        strcpy(Host->PrivateKey, Hist->PrivateKey);\r
        // 同時接続対応\r
        Host->MaxThreadCount = Hist->MaxThreadCount;\r
+       Host->ReuseCmdSkt = Hist->ReuseCmdSkt;\r
        // MLSD対応\r
        Host->UseMLSD = Hist->UseMLSD;\r
        // IPv6対応\r
-       Host->UseIPv6 = Hist->UseIPv6;\r
+       Host->NetType = Hist->NetType;\r
+       // 自動切断対策\r
+       Host->NoopInterval = Hist->NoopInterval;\r
+       // 再転送対応\r
+       Host->TransferErrorMode = Hist->TransferErrorMode;\r
+       Host->TransferErrorNotify = Hist->TransferErrorNotify;\r
        return;\r
 }\r
 \r