OSDN Git Service

Enlarge buffers for replies on transferring files.
[ffftp/ffftp.git] / history.c
index 0dde682..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
@@ -235,7 +238,12 @@ static void CopyHostToHistory(HOSTDATA *Host, HISTORYDATA *New)
        // 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
@@ -297,7 +305,12 @@ void CopyHistoryToHost(HISTORYDATA *Hist, HOSTDATA *Host)
        // 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