equal
deleted
inserted
replaced
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 |
1725 |
1725 |
1726 |
1726 |
1727 /** |
1727 /** |
1728 * Sets the value of a socket option. |
1728 * Sets the value of a socket option. |
1729 * |
1729 * |
|
1730 * @param <T> The type of the socket option value |
1730 * @param name The socket option |
1731 * @param name The socket option |
1731 * @param value The value of the socket option. A value of {@code null} |
1732 * @param value The value of the socket option. A value of {@code null} |
1732 * may be valid for some options. |
1733 * may be valid for some options. |
1733 * @return this Socket |
1734 * @return this Socket |
1734 * |
1735 * |
1756 } |
1757 } |
1757 |
1758 |
1758 /** |
1759 /** |
1759 * Returns the value of a socket option. |
1760 * Returns the value of a socket option. |
1760 * |
1761 * |
|
1762 * @param <T> The type of the socket option value |
1761 * @param name The socket option |
1763 * @param name The socket option |
1762 * |
1764 * |
1763 * @return The value of the socket option. |
1765 * @return The value of the socket option. |
1764 * |
1766 * |
1765 * @throws UnsupportedOperationException if the socket does not support |
1767 * @throws UnsupportedOperationException if the socket does not support |