3788N/A * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. 3788N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3788N/A * This code is free software; you can redistribute it and/or modify it 3788N/A * under the terms of the GNU General Public License version 2 only, as 3788N/A * published by the Free Software Foundation. Oracle designates this 3788N/A * particular file as subject to the "Classpath" exception as provided 3788N/A * by Oracle in the LICENSE file that accompanied this code. 3788N/A * This code is distributed in the hope that it will be useful, but WITHOUT 3788N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3788N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3788N/A * version 2 for more details (a copy is included in the LICENSE file that 3788N/A * You should have received a copy of the GNU General Public License version 3788N/A * 2 along with this work; if not, write to the Free Software Foundation, 3788N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3788N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3788N/A * or visit www.oracle.com if you need additional information or have any 3788N/A * Manages count of total number of UDP sockets and ensures 3788N/A * that exception is thrown if we try to create more than the 3788N/A * This functionality could be put in NetHooks some time in future. 3788N/A /* default maximum number of udp sockets per VM 3788N/A * when a security manager is enabled. 4435N/A * The default is 25 which is high enough to be useful 3788N/A * but low enough to be well below the maximum number 4435N/A * of port numbers actually available on all OSes 4435N/A * when multiplied by the maximum feasible number of VM processes 4435N/A * that could practically be spawned.