Concurrent.java revision 0
869N/A * Copyright 2001 Sun Microsystems, Inc. All Rights Reserved. 869N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 869N/A * This code is free software; you can redistribute it and/or modify it 869N/A * under the terms of the GNU General Public License version 2 only, as 869N/A * published by the Free Software Foundation. 869N/A * This code is distributed in the hope that it will be useful, but WITHOUT 869N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 869N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 869N/A * version 2 for more details (a copy is included in the LICENSE file that 869N/A * accompanied this code). 869N/A * You should have received a copy of the GNU General Public License version 869N/A * 2 along with this work; if not, write to the Free Software Foundation, 869N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 869N/A * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 869N/A * CA 95054 USA or visit www.sun.com if you need additional information or 0N/A * @summary On Windows 2000 we observed behaviour that reflects the underlying 0N/A * 1. PortUnreachableException throw per underlying reset 869N/A * 2. No PUE throw for DatagramSocket.send 869N/A byte b[] =
new byte[
512];
868N/A * Create the datagram and connect it to destination 65N/A * Start the reader thread 65N/A byte b[] =
new byte[
512];
65N/A * Send a bunch of packets to the destination 869N/A for (
int i=
0; i<
10; i++) {
0N/A * Give time for ICMP port unreachables to return