Lines Matching refs:dc
40 try (DatagramChannel dc = DatagramChannel.open()) {
41 test(dc);
42 test(dc);
46 try (DatagramChannel dc = DatagramChannel.open(StandardProtocolFamily.INET)) {
47 test(dc);
48 test(dc);
57 static void test(DatagramChannel dc) throws IOException {
62 dc.connect(new InetSocketAddress(lh, server.socket().getLocalPort()));
64 dc.write(ByteBuffer.wrap("hello".getBytes()));
69 dc.disconnect();
72 dc.write(ByteBuffer.wrap("another message".getBytes()));