jdk/src/java.base/share/classes/java/net/SocketImpl.java
changeset 28852 a581c7868768
parent 27341 9a5b45530ed4
child 34968 93b315c61ca3
equal deleted inserted replaced
28851:e4c16ed7bffa 28852:a581c7868768
     1 /*
     1 /*
     2  * Copyright (c) 1995, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1995, 2015, 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
   360     }
   360     }
   361 
   361 
   362     /**
   362     /**
   363      * Called to set a socket option.
   363      * Called to set a socket option.
   364      *
   364      *
       
   365      * @param <T> The type of the socket option value
   365      * @param name The socket option
   366      * @param name The socket option
   366      *
   367      *
   367      * @param value The value of the socket option. A value of {@code null}
   368      * @param value The value of the socket option. A value of {@code null}
   368      *              may be valid for some options.
   369      *              may be valid for some options.
   369      *
   370      *
   395     }
   396     }
   396 
   397 
   397     /**
   398     /**
   398      * Called to get a socket option.
   399      * Called to get a socket option.
   399      *
   400      *
       
   401      * @param <T> The type of the socket option value
   400      * @param name The socket option
   402      * @param name The socket option
   401      *
   403      *
   402      * @return the value of the named option
   404      * @return the value of the named option
   403      *
   405      *
   404      * @throws UnsupportedOperationException if the SocketImpl does not
   406      * @throws UnsupportedOperationException if the SocketImpl does not