4963N/A * Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 0N/A * An implementation of ServerSocketChannels 0N/A // Used to make native close and configure calls 0N/A // Our file descriptor 0N/A // fd value needed for dev/poll. This value will remain valid 0N/A // even after the value in the file descriptor object has been set to -1 0N/A // ID of native thread currently blocked in this channel, for signalling 0N/A // Lock held by thread currently blocked in this channel 0N/A // Lock held by any thread that modifies the state fields declared below 0N/A // DO NOT invoke a blocking I/O operation while holding this lock! 0N/A // -- The following fields are protected by stateLock 0N/A // Channel state, increases monotonically 6272N/A // set true when exclusive binding is on and SO_REUSEADDR is emulated 0N/A // Our socket adaptor, if any 0N/A // -- End of fields protected by stateLock 6272N/A // SO_REUSEADDR emulated when using exclusive bind 6272N/A // no options that require special handling 6272N/A // SO_REUSEADDR emulated when using exclusive bind 524N/A // no options that require special handling 0N/A * Translates native poll revent set into a ready operation set 0N/A // This should only happen if this channel is pre-closed while a 0N/A // selection operation is in progress 0N/A // ## Throw an error if this channel has not been pre-closed 0N/A * Translates an interest operation set into a native poll event set 0N/A // Place ops into pollfd array 0N/A // -- Native methods -- 0N/A // Accepts a new connection, setting the given file descriptor to refer to 0N/A // the new socket and setting isaa[0] to the socket's remote address. 0N/A // Returns 1 on success, or IOStatus.UNAVAILABLE (if non-blocking and no 0N/A // connections are pending) or IOStatus.INTERRUPTED.