public void Stop() { if (Clients != null && Clients.Count != 0) { for (int i = 0; i < Clients.Count; i++) { RemoveClient(i); } Clients.Clear(); } if (m_Server != null) { if (m_Server.Connected) { m_Server.Shutdown(SocketShutdown.Both); } m_Server.Close(); m_Server = null; } Clients = null; if (Processo != null) { Processo.Abort(); Processo = null; } }