Close() public method

public Close ( ) : void
return void
Example #1
0
 public static void RemoveEndPoint(EndPointListener epl, IPEndPoint ep)
 {
     lock (ip_to_endpoints) {
         Dictionary <int, EndPointListener> p = null;
         p = ip_to_endpoints [ep.Address];
         p.Remove(ep.Port);
         epl.Close();
     }
 }
Example #2
0
 public static void RemoveEndPoint(EndPointListener epl, IPEndPoint ep)
 {
     lock (ip_to_endpoints) {
         // Dictionary<int, EndPointListener> p
         Hashtable p = null;
         p = (Hashtable)ip_to_endpoints [ep.Address];
         p.Remove(ep.Port);
         if (p.Count == 0)
         {
             ip_to_endpoints.Remove(ep.Address);
         }
         epl.Close();
     }
 }
Example #3
0
 public static void RemoveEndPoint(EndPointListener epl, IPEndPoint ep)
 {
     lock (ip_to_endpoints)
     {
         Hashtable hashtable = null;
         hashtable = (Hashtable)ip_to_endpoints[ep.Address];
         hashtable.Remove(ep.Port);
         if (hashtable.Count == 0)
         {
             ip_to_endpoints.Remove(ep.Address);
         }
         epl.Close();
     }
 }
        public static void RemoveEndPoint(EndPointListener epl, IPEndPoint ep)
        {
            Hashtable obj = EndPointManager.ip_to_endpoints;

            lock (obj)
            {
                Hashtable hashtable = (Hashtable)EndPointManager.ip_to_endpoints[ep.Address];
                hashtable.Remove(ep.Port);
                if (hashtable.Count == 0)
                {
                    EndPointManager.ip_to_endpoints.Remove(ep.Address);
                }
                epl.Close();
            }
        }
Example #5
0
		public static void RemoveEndPoint (EndPointListener epl, IPEndPoint ep)
		{
			lock (ip_to_endpoints) {
				// Dictionary<int, EndPointListener> p
				Hashtable p = null;
				p = (Hashtable) ip_to_endpoints [ep.Address];
				p.Remove (ep.Port);
				if (p.Count == 0) {
					ip_to_endpoints.Remove (ep.Address);
				}
				epl.Close ();
			}
		}