test/jdk/com/sun/nio/sctp/SctpMultiChannel/Branch.java
changeset 59205 afcc8af048e6
parent 47216 71c04702a3d5
equal deleted inserted replaced
59204:7b10581e9632 59205:afcc8af048e6
   208                 check(assocs.size() == 1, "there should be only one association");
   208                 check(assocs.size() == 1, "there should be only one association");
   209 
   209 
   210                 /* echo the message */
   210                 /* echo the message */
   211                 debug("Server: echoing first message");
   211                 debug("Server: echoing first message");
   212                 buffer.flip();
   212                 buffer.flip();
   213                 int bytes = serverChannel.send(buffer, info);
   213                 MessageInfo sendInfo = MessageInfo.createOutgoing(info.association(), null, 0);
       
   214                 int bytes = serverChannel.send(buffer, sendInfo);
   214                 debug("Server: sent " + bytes + "bytes");
   215                 debug("Server: sent " + bytes + "bytes");
   215 
   216 
   216                 clientFinishedLatch.await(10L, TimeUnit.SECONDS);
   217                 clientFinishedLatch.await(10L, TimeUnit.SECONDS);
   217                 serverFinishedLatch.countDown();
   218                 serverFinishedLatch.countDown();
   218             } catch (IOException ioe) {
   219             } catch (IOException ioe) {