C# SECS 통신 관련 구조체 예제

2021. 8. 9. 15:59프로그래밍

반응형

https://de1233.tistory.com/87

 

드디어 한글! 심포니 오브 워:네피림 사가[압도적/한글무설치/최신v1.04.2]95% 긍정 전술RPG

실행파일 : Shim_Launcher.exe Maga Link : https://mega.nz/file/yuI01RQR#M5FaSYAk3toYtrZppB38TB_cdfHvG-bdzvPcuWjPUL4 916.78 MB file on MEGA mega.nz

de1233.tistory.com

예전 SECS 통신 드라이버 개발 시 작업한 데이터 구조체입니다.

 

SECS 사양에 맞게 작업되어 있으니 필요하시면 사용바랍니다.

class clsDataManager
    {
        static int _MsgID;
        static int _MsgID_Log = 1000;

        public static int MsgID
        {
            get { return _MsgID; }
            set 
            {
                if (value == 100)
                    _MsgID = 1;
                else
                    _MsgID = value;
            }
        }

        public static int MsgID_Log
        {
            get { return _MsgID_Log; }
            set
            {
                _MsgID_Log = _MsgID + 1000;
            }
        }

        public static SECSEventID CurrSECSEventID = SECSEventID.DisConn;

        //Key:MsgID
        public static Dictionary<int, clsSECSMessage> MessageList = new Dictionary<int, clsSECSMessage>();
        //Validation Check를 위한 기본 메세지 구조 저장
        public static Dictionary<string, XmlNodeList> MsgStruct = new Dictionary<string, XmlNodeList>();

        public static Dictionary<string, clsT3Checker> TimeOutChk = new Dictionary<string, clsT3Checker>();

        public static bool T5Enable = false;
        public static bool T6Enable = false;
        public static bool T7Enable = false;
        public static bool T8Enable = false;

        public static bool Connected = false;
        public static bool Selected = false;

        public static DateTime T5DT = new DateTime();
        public static DateTime T6DT = new DateTime();
        public static DateTime T7DT = new DateTime();
        public static DateTime T8DT = new DateTime();
        public static DateTime LinkTestDT = new DateTime();

        #region ini 파일 사용 변수
        //[General]
        public static bool bHost;
        public static bool bHSMS;
        public static int nDeviceID;
        public static int nQueue;
        public static string sSMLPath;
        public static bool bSkipSMLCheck;

        //[HSMS]
        public static string sIP;
        public static int nPort;
        public static bool bActive;

        //[Timeout]
        public static int nT1;
        public static int nT2;
        public static int nT3;
        public static int nT4;
        public static int nT5;
        public static int nT6;
        public static int nT7;
        public static int nT8;
        public static int nLinkTestInterval;
        public static int nRetryLimit;
        
        //[Log]
        public static bool bHex;
        public static bool bSECS_II;
        public static bool bEvent;
        public static bool bAlaram;
        public static bool bHour;
        public static int nKeepDays;
        public static string sDir;
        public static string sPrefix;
        public static string sExtension;
        public static bool bUseLogByMsg;

        //[S9 Reply]
        public static bool bS9F1;
        public static bool bS9F3;
        public static bool bS9F5;
        public static bool bS9F7;
        #endregion
    }

 

https://de1233.tistory.com/67

 

[한글무설치.신작] 원피스 오디세이 ONE PIECE ODYSSEY

Maga Link Part 1 : https://mega.nz/file/LUY2QSBL#zQNI588a4Tw4YbZ2rU4Jv_gDs5JYNOwb5Hy3Gen7dcM 18 GB file on MEGA mega.nz Maga Link Part 2 : https://mega.nz/file/SNtyjBpA#8oeitBZ6jlYDMV1DsEVYMOGKhl64sieELE9ijkQU8Ao 11.15 GB file on MEGA mega.nz

de1233.tistory.com

 

https://de1233.tistory.com/56

 

[긍정적/한글(번역)무설치/신작]뱀서류! 리턴 투 어비스 Return to abyss

Maga Link : https://mega.nz/file/E6wUBRqB#cb0ZVKneDXp2LufZdEgMk1KGkqc8iHWbnAYItja9dc4 532.86 MB file on MEGA mega.nz

de1233.tistory.com

 

https://de1233.tistory.com/55

 

[매우긍정적/한글무설치/최신v0.30.3b]가방정리 로그라이크! 백팩 히어로

MagaLink : https://mega.nz/file/0vgR1QBb#zsGa7cSSW5N5UpYAAsy1I3fxNzNXyyxQW7fyFMqzgDM 145.81 MB file on MEGA mega.nz

de1233.tistory.com

 

반응형