public void Stop() { foreach (var client in ConnectedUsers) { client.Close(); } ConnectedUsers.Clear(); ServerSocket.Stop(); }
public void Stop() { ConnectedUsers.Clear(); ServerSocket.Stop(); DisplayColoredText("Сервер закрыт", ConsoleColor.Red); }
public static void Stop() { server.Stop(); }