2362N/A * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved. 1096N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1096N/A * This code is free software; you can redistribute it and/or modify it 1096N/A * under the terms of the GNU General Public License version 2 only, as 1096N/A * published by the Free Software Foundation. 1096N/A * This code is distributed in the hope that it will be useful, but WITHOUT 1096N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1096N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1096N/A * version 2 for more details (a copy is included in the LICENSE file that 1096N/A * You should have received a copy of the GNU General Public License version 1096N/A * 2 along with this work; if not, write to the Free Software Foundation, 1096N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 1096N/A * @summary Tests the SCTP protocol implementation 1096N/A /* requested to connecct to a specific address */ 1096N/A /* start server on local machine, default */ 1096N/A /* TEST 1: Verify NotYetConnectedException thrown */ 1096N/A fail(
"shutdown not throwing expected NotYetConnectedException");
1096N/A /* TEST 2: receive data sent before shutdown */ 1096N/A "received message not the same as sent message");
1096N/A /* TEST 3: receive notifications on the SCTP stack */ 1096N/A /* TEST 4: If the channel is already shutdown then invoking this 1096N/A /* TEST 5: Further sends will throw ClosedChannelException */ 1096N/A fail(
"shutdown not throwing expected ClosedChannelException");
1326N/A /* TEST 6: getRemoteAddresses */ 1326N/A "A shutdown channel should not have remote addresses");
1096N/A //serverAddr = (InetSocketAddress)(ssc.getAllLocalAddresses().iterator().next()); 1096N/A /* notify client that the data has been sent */ 1096N/A /* wait until after the client has finished its tests */ 1096N/A //--------------------- Infrastructure ---------------------------