public void Close () { sock.Close (); }
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(); } }