src/java.base/share/classes/java/net/SocketOptions.java
changeset 58242 94bb65cb37d3
parent 47216 71c04702a3d5
equal deleted inserted replaced
58241:33de7752835c 58242:94bb65cb37d3
     1 /*
     1 /*
     2  * Copyright (c) 1996, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1996, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    79      * <I>Boolean.FALSE</I> implicitly enables it.
    79      * <I>Boolean.FALSE</I> implicitly enables it.
    80      * <BR>
    80      * <BR>
    81      * Throws SocketException if the option is unrecognized,
    81      * Throws SocketException if the option is unrecognized,
    82      * the socket is closed, or some low-level error occurred
    82      * the socket is closed, or some low-level error occurred
    83      * <BR>
    83      * <BR>
    84      * @param optID identifies the option
    84      * @param  optID identifies the option
    85      * @param value the parameter of the socket option
    85      * @param  value the parameter of the socket option
    86      * @throws SocketException if the option is unrecognized,
    86      * @throws SocketException if the option is unrecognized,
    87      * the socket is closed, or some low-level error occurred
    87      *         the socket is closed, or some low-level error occurred
    88      * @see #getOption(int)
    88      * @see    #getOption(int)
    89      */
    89      */
    90     public void
    90     public void
    91         setOption(int optID, Object value) throws SocketException;
    91         setOption(int optID, Object value) throws SocketException;
    92 
    92 
    93     /**
    93     /**
   114      * } else {
   114      * } else {
   115      *   // the true type of o is java.lang.Boolean.FALSE;
   115      *   // the true type of o is java.lang.Boolean.FALSE;
   116      * }
   116      * }
   117      * </PRE>
   117      * </PRE>
   118      *
   118      *
   119      * @param optID an {@code int} identifying the option to fetch
   119      * @param  optID an {@code int} identifying the option to fetch
   120      * @return the value of the option
   120      * @return the value of the option
   121      * @throws SocketException if the socket is closed
   121      * @throws SocketException if the socket is closed
   122      * @throws SocketException if <I>optID</I> is unknown along the
   122      * @throws SocketException if <I>optID</I> is unknown along the
   123      *         protocol stack (including the SocketImpl)
   123      *         protocol stack (including the SocketImpl)
   124      * @see #setOption(int, java.lang.Object)
   124      * @see #setOption(int, java.lang.Object)