[성현모] Svn 업데이트 받기

This commit is contained in:
SHM
2025-07-11 09:21:30 +09:00
parent 6e462ca991
commit f0c63da29d
22 changed files with 364 additions and 847 deletions

View File

@ -6,6 +6,7 @@ using System.IO;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Text.RegularExpressions;
using System.Threading;
@ -29,8 +30,12 @@ namespace SystemX.Net.XAdaptor.Manager
public XAdaptorManager(string strConfigFilePos = "")
{
AssemblyName assemblyName = Assembly.GetExecutingAssembly().GetName();
Version assemblyVersion = assemblyName.Version;
MessageOutput.ConsoleWrite(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss>>") +
@"Use CP-Server[X] Adaptor Version for [CPXV2][v240829] " +
@"Use CP-Server[X] Adaptor Version for [CPXV2][" + assemblyVersion.ToString() + "] " +
"[SystemX.Net.XAdaptor.Manager : XAdaptorManager]", ConsoleColor.Green, LogMessageLevel.FATAL);
strCreateConfigFilePos = string.Empty;
@ -183,10 +188,17 @@ namespace SystemX.Net.XAdaptor.Manager
return GetAdaptorHandler.StateFTP;
}
private eFTPServiceStatus StartFTP()
private eFTPServiceStatus CheckFTP()
{
GetAdaptorHandler.StateFTP = xAdaptor.StartFTPService();
for (int n = 0; n < 3; n++)
{
GetAdaptorHandler.StateFTP = xAdaptor.StartFTPService();
if (GetAdaptorHandler.StateFTP == eFTPServiceStatus.Connected)
break;
if (GetAdaptorHandler.StateFTP == eFTPServiceStatus.Unused)
break;
}
return GetAdaptorHandler.StateFTP;
}
@ -202,7 +214,7 @@ namespace SystemX.Net.XAdaptor.Manager
}
// TODO : FTP ALIS
StartFTP();
CheckFTP();
xAdaptor.ConnectStartStyleAuto = true;
@ -232,7 +244,7 @@ namespace SystemX.Net.XAdaptor.Manager
}
// TODO : FTP ALIS
StartFTP();
CheckFTP();
xAdaptor.ConnectStartStyleAuto = false;