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 |
1306 } |
1306 } |
1307 |
1307 |
1308 /** |
1308 /** |
1309 * Sets the value of a socket option. |
1309 * Sets the value of a socket option. |
1310 * |
1310 * |
|
1311 * @param <T> The type of the socket option value |
1311 * @param name The socket option |
1312 * @param name The socket option |
1312 * @param value The value of the socket option. A value of {@code null} |
1313 * @param value The value of the socket option. A value of {@code null} |
1313 * may be valid for some options. |
1314 * may be valid for some options. |
1314 * |
1315 * |
1315 * @return this DatagramSocket |
1316 * @return this DatagramSocket |
1340 } |
1341 } |
1341 |
1342 |
1342 /** |
1343 /** |
1343 * Returns the value of a socket option. |
1344 * Returns the value of a socket option. |
1344 * |
1345 * |
|
1346 * @param <T> The type of the socket option value |
1345 * @param name The socket option |
1347 * @param name The socket option |
1346 * |
1348 * |
1347 * @return The value of the socket option. |
1349 * @return The value of the socket option. |
1348 * |
1350 * |
1349 * @throws UnsupportedOperationException if the datagram socket |
1351 * @throws UnsupportedOperationException if the datagram socket |