Esempio n. 1
0
        public TdirResult Query(int appID, string[] ipList, int[] portList, string lastSuccessIP, int lastSuccessPort, string openID, bool isOnlyTACC)
        {
            if ((ipList == null) || (ipList.Length == 0))
            {
                this.mErrorCode   = TdirResult.ParamError;
                this.mErrorString = "the input IP list is null or empty";
                this.TdirLog("the input IP list is null or empty");
                return(TdirResult.ParamError);
            }
            if ((portList == null) || (portList.Length == 0))
            {
                this.mErrorCode   = TdirResult.ParamError;
                this.mErrorString = "the input port list is null or empty";
                this.TdirLog("the input port list is null or empty");
                return(TdirResult.ParamError);
            }
            this.mErrorCode           = TdirResult.TdirNoError;
            this.mErrorString         = "no error";
            this.isServiceTableEnable = false;
            this.m_appID           = appID;
            this.m_ipList          = ipList;
            this.m_portList        = portList;
            this.m_lastSuccessIP   = lastSuccessIP;
            this.m_lastSuccessPort = lastSuccessPort;
            this.m_openID          = openID;
            this.m_treenodes       = new List <TdirTreeNode>();
            this.m_treeRoleInfoDic.Clear();
            string str  = string.Join("|", ipList);
            string str2 = string.Join("|", this.ToStringArray(portList));

            this.Dump();
            return(tcls_init(base.ObjectId, appID, str, str2, lastSuccessIP, Convert.ToString(lastSuccessPort), openID, isOnlyTACC));
        }
Esempio n. 2
0
 public ApolloTdir()
 {
     this.mLog = false;
     this.isServiceTableEnable = false;
     this.mErrorCode           = TdirResult.TdirNoError;
     this.mErrorString         = "no error";
     this.m_treeRoleInfoDic    = new DictionaryView <int, List <TdirUserRoleInfo> >();
 }
Esempio n. 3
0
        public TdirResult QueryISP(int appID, string[] ipList, int[] portList, string lastSuccessIP = "", int lastSuccessPort = 0, string openID = "")
        {
            if (ipList == null || ipList.Length == 0)
            {
                this.mErrorCode   = TdirResult.ParamError;
                this.mErrorString = "the input IP list is null or empty";
                this.TdirLog("the input IP list is null or empty");
                return(TdirResult.ParamError);
            }
            if (portList == null || portList.Length == 0)
            {
                this.mErrorCode   = TdirResult.ParamError;
                this.mErrorString = "the input port list is null or empty";
                this.TdirLog("the input port list is null or empty");
                return(TdirResult.ParamError);
            }
            this.mErrorCode           = TdirResult.TdirNoError;
            this.mErrorString         = "no error";
            this.isServiceTableEnable = false;
            this.m_appID           = appID;
            this.m_ipList          = ipList;
            this.m_portList        = portList;
            this.m_lastSuccessIP   = lastSuccessIP;
            this.m_lastSuccessPort = lastSuccessPort;
            this.m_openID          = openID;
            this.m_treenodes       = new List <TdirTreeNode>();
            this.m_treeRoleInfoDic.Clear();
            this.m_treeCommomData.ispCode      = -1;
            this.m_treeCommomData.provinceCode = -1;
            string ipList2   = string.Join("|", ipList);
            string portList2 = string.Join("|", this.ToStringArray(portList));

            this.Dump();
            this.TdirLog("QueryISP");
            return(ApolloTdir.tcls_init_query_isp(base.ObjectId, appID, ipList2, portList2, lastSuccessIP, Convert.ToString(lastSuccessPort), openID));
        }