equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2000, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2000, 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. |
7 * published by the Free Software Foundation. |
22 */ |
22 */ |
23 |
23 |
24 import java.net.MulticastSocket; |
24 import java.net.MulticastSocket; |
25 import java.net.BindException; |
25 import java.net.BindException; |
26 |
26 |
|
27 /* |
|
28 * @test |
|
29 * @summary Check if MulticastSocket sets SO_REUSEADDR |
|
30 */ |
|
31 |
27 public class Reuse { |
32 public class Reuse { |
28 public static void main(String[] args) throws Exception { |
33 public static void main(String[] args) throws Exception { |
29 MulticastSocket s1, s2; |
34 MulticastSocket s1, s2; |
30 |
35 |
31 try { |
36 try { |