equal
deleted
inserted
replaced
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) { |