コード例 #1
0
            public void AddValue(string value)
            {
                if (null == m_Values)
                {
                    m_Values = new COL.List <string>();
                }

                m_Values.Add(value);
            }
コード例 #2
0
        public bool IsClientHost(string host)
        {
            if (null == host || 0 == host.Length)
            {
                return(false);
            }

            NET.IPHostEntry   ipHe       = NET.Dns.GetHostEntry(string.Empty);
            COL.List <string> localHosts = new COL.List <string>(16);

            foreach (NET.IPAddress ip in ipHe.AddressList)
            {
                localHosts.Add(ip.ToString());
            }

            localHosts.AddRange(ipHe.Aliases);
            localHosts.Add(ipHe.HostName);
            localHosts.Add(m_ClientIp.ToString());

            return(IsHostInList(host, localHosts));
        }
コード例 #3
0
 public Parameter(string name)
 {
     m_Name   = name;
     m_Count  = 0;
     m_Values = null;
 }