Пример #1
0
		public void Start(IpAddress address)
		{
			if (address.Valid)
			{
				m_address = address;
				if (Engine.Instance.NetworkLockManager != null)
					Engine.Instance.NetworkLockManager.AllowIP(m_address);				
			}
		}
Пример #2
0
		public void ReadXML(XmlElement node)
		{
			Address = node.GetAttribute("address");
			Mask = node.GetAttribute("mask");
			Gateway = node.GetAttribute("gateway");
			Interface = node.GetAttribute("interface");
			Metrics = node.GetAttribute("metrics");

			Flags = node.GetAttribute("flags");
			Mss = node.GetAttribute("mss");
			Window = node.GetAttribute("window");
			Irtt = node.GetAttribute("irtt");

			RefCount = 1;
		}
Пример #3
0
		public virtual void DeallowIP(IpAddress ip)
		{
		}
Пример #4
0
		public RouteScope(IpAddress address)
		{
			Start(address);
		}
Пример #5
0
		public void DeallowIP(IpAddress ip)
		{
			if (m_current != null)
				m_current.DeallowIP(ip);
		}
Пример #6
0
		public static string ToKey(IpAddress address, IpAddress mask)
		{
			return address.Value + "-" + mask.Value;
		}
Пример #7
0
 public virtual void DeallowIP(IpAddress ip)
 {
 }
Пример #8
0
		public override void DeallowIP(IpAddress ip)
		{
			base.DeallowIP(ip);
		}
Пример #9
0
		public override void AllowIP(IpAddress ip)
		{
			base.AllowIP(ip);
		}