/openjdk7/jdk/test/java/nio/channels/DatagramChannel/ |
H A D | SocketOptionTests.java | 38 static <T> void checkOption(DatagramChannel dc, argument 43 T value = dc.getOption(name); 49 DatagramChannel dc = DatagramChannel.open(); 52 Set<SocketOption<?>> options = dc.supportedOptions(); 62 checkOption(dc, SO_BROADCAST, false); 63 checkOption(dc, IP_MULTICAST_TTL, 1); // true on supported platforms 64 checkOption(dc, IP_MULTICAST_LOOP, true); // true on supported platforms 67 dc.setOption(SO_BROADCAST, true); 68 checkOption(dc, SO_BROADCAST, true); 69 dc [all...] |
H A D | BindNull.java | 38 try (DatagramChannel dc = DatagramChannel.open()) { 39 dc.bind(null); 41 try (DatagramChannel dc = DatagramChannel.open(StandardProtocolFamily.INET)) { 42 dc.bind(null); 44 try (DatagramChannel dc = DatagramChannel.open(StandardProtocolFamily.INET6)) { 45 dc.bind(null);
|
H A D | IsConnected.java | 40 DatagramChannel dc = DatagramChannel.open(); 41 dc.configureBlocking(true); 42 dc.connect(isa); 43 if (!dc.isConnected()) 45 if (!dc.socket().isConnected()) 47 dc.close();
|
H A D | NotBound.java | 37 static void checkBound(DatagramChannel dc) throws IOException { argument 38 if (dc.getLocalAddress() == null) 44 static void wakeupWhenBound(final DatagramChannel dc) { argument 52 local = (InetSocketAddress)dc.getLocalAddress(); 75 DatagramChannel dc; 78 dc = DatagramChannel.open(); 84 dc.connect(new InetSocketAddress(InetAddress.getLocalHost(), peerPort)); 85 checkBound(dc); 90 dc.close(); 94 dc [all...] |
H A D | Disconnect.java | 39 try (DatagramChannel dc = DatagramChannel.open()) { 40 test(dc); 41 test(dc); 45 try (DatagramChannel dc = DatagramChannel.open(StandardProtocolFamily.INET)) { 46 test(dc); 47 test(dc); 56 static void test(DatagramChannel dc) throws IOException { argument 61 dc.connect(new InetSocketAddress(lh, server.socket().getLocalPort())); 63 dc.write(ByteBuffer.wrap("hello".getBytes())); 68 dc [all...] |
H A D | NoSender.java | 35 DatagramChannel dc = DatagramChannel.open(); 36 dc.socket().bind(new InetSocketAddress(0)); 37 dc.configureBlocking(false); 39 SocketAddress sa1 = dc.receive(buf1); 42 dc.close();
|
H A D | ChangingAddress.java | 36 static void check(DatagramSocket ds, DatagramChannel dc) { argument 38 InetAddress actual = dc.socket().getLocalAddress(); 52 DatagramChannel dc = null; 56 dc = DatagramChannel.open().bind(new InetSocketAddress(0)); 57 check(ds, dc); 60 dc.connect(remote); 61 check(ds, dc); 64 dc.disconnect(); 65 check(ds, dc); 69 dc [all...] |
H A D | SelectWhenRefused.java | 44 DatagramChannel dc = DatagramChannel.open().bind(new InetSocketAddress(0)); 49 dc.configureBlocking(false); 50 dc.register(sel, SelectionKey.OP_READ); 53 sendDatagram(dc, refuser); 64 dc.connect(refuser); 66 sendDatagram(dc, refuser); 71 n = dc.read(ByteBuffer.allocate(100)); 78 dc.disconnect(); 82 sendDatagram(dc, refuser); 92 dc 96 sendDatagram(DatagramChannel dc, SocketAddress remote) argument [all...] |
H A D | IsBound.java | 46 DatagramChannel dc = DatagramChannel.open(); 47 dc.send(bb, isa); 48 if(!dc.socket().isBound()) 50 dc.close(); 52 dc = DatagramChannel.open(); 53 if(dc.socket().isBound()) 55 dc.close();
|
H A D | Connect.java | 85 DatagramChannel dc = DatagramChannel.open(); 96 dc.connect(isa); 97 dc.write(bb); 103 dc.send(bb, bogus); 111 dc.read(bb); 118 dc.disconnect(); 119 dc.close(); 127 final DatagramChannel dc; field in class:Connect.Reactor 131 dc = DatagramChannel.open().bind(new InetSocketAddress(0)); 135 return dc [all...] |
H A D | BasicMulticastTests.java | 54 DatagramChannel dc = DatagramChannel.open(family) 59 MembershipKey key = dc.join(group, nif); 60 MembershipKey other = dc.join(group, nif); 83 key = dc.join(group, nif, source); 84 other = dc.join(group, nif, source); 106 dc.close(); 117 DatagramChannel dc = DatagramChannel.open(StandardProtocolFamily.INET) 127 key = dc.join(group, nif); 129 dc.join(group, nif, thisHost); 136 key = dc [all...] |
H A D | SendToUnresolved.java | 38 DatagramChannel dc = DatagramChannel.open(); 43 dc.send(bb, sa); 48 dc.close();
|
H A D | EmptyBuffer.java | 48 DatagramChannel dc = DatagramChannel.open(); 56 dc.connect(isa); 57 dc.write(bb); 59 dc.write(bb); 61 dc.write(bb); 66 dc.close(); 71 final DatagramChannel dc; field in class:EmptyBuffer.Server 75 this.dc = DatagramChannel.open().bind(new InetSocketAddress(0)); 79 return dc.socket().getLocalPort(); 108 sa = dc [all...] |
H A D | Sender.java | 76 DatagramChannel dc = DatagramChannel.open(); 83 dc.connect(isa); 84 dc.write(bb); 92 final DatagramChannel dc; field in class:Sender.Server 96 dc = DatagramChannel.open().bind(new InetSocketAddress(0)); 100 return dc.socket().getLocalPort(); 125 dc.configureBlocking(false); 127 sa = dc.receive(bb); 131 sa = dc.receive(bb); 135 dc [all...] |
H A D | MulticastSendReceiveTests.java | 61 DatagramChannel dc = DatagramChannel.open(family) 69 dc.send(buf, new InetSocketAddress(group, port)); 70 dc.close(); 81 static void receiveDatagram(DatagramChannel dc, argument 87 dc.configureBlocking(false); 88 dc.register(sel, SelectionKey.OP_READ); 95 SocketAddress sa = dc.receive(buf); 148 try (DatagramChannel dc = (family == UNSPEC) ? 150 dc.setOption(StandardSocketOptions.SO_REUSEADDR, true) 158 key = dc [all...] |
H A D | SRTest.java | 129 DatagramChannel dc = DatagramChannel.open(); 135 dc.send(bb, isa); 137 dc.send(bb, isa); 176 final DatagramChannel dc; field in class:SRTest.NioReader 180 this.dc = DatagramChannel.open().bind(new InetSocketAddress(0)); 184 return dc.socket().getLocalPort(); 195 SocketAddress sa = dc.receive(bb); 200 dc.close();
|
/openjdk7/jdk/test/javax/swing/text/DefaultCaret/6938583/ |
H A D | bug6938583.java | 44 DefaultCaret dc = new DefaultCaret(); 45 jta.setCaret(dc); 46 dc.deinstall(jta); 47 dc.mouseClicked(new MouseEvent(jta, MouseEvent.MOUSE_CLICKED, 0, 0, 0, 0, 0, false));
|
/openjdk7/corba/src/share/classes/com/sun/corba/se/spi/orb/ |
H A D | ORBConfigurator.java | 27 /** Interface used to configure an ORB instance. The DataCollector dc has all 29 * parser, call dc.setParser( parser ), get the consolidated properties from dc, 35 void configure( DataCollector dc, ORB orb ) ; argument
|
/openjdk7/jdk/make/sun/dcpr/ |
H A D | Makefile | 27 PACKAGE = sun.dc 38 sun/dc/DuctusRenderingEngine.java \ 39 sun/dc/path/FastPathProducer.java \ 40 sun/dc/path/PathConsumer.java \ 41 sun/dc/path/PathError.java \ 42 sun/dc/path/PathException.java \ 43 sun/dc/pr/PathDasher.java \ 44 sun/dc/pr/PathFiller.java \ 45 sun/dc/pr/PathStroker.java \ 46 sun/dc/p [all...] |
/openjdk7/jdk/src/share/classes/sun/nio/ch/ |
H A D | DatagramSocketAdaptor.java | 46 private final DatagramChannelImpl dc; field in class:DatagramSocketAdaptor 52 private DatagramSocketAdaptor(DatagramChannelImpl dc) throws IOException { argument 56 // before the dc field is initialized. 58 this.dc = dc; 61 public static DatagramSocket create(DatagramChannelImpl dc) { argument 63 return new DatagramSocketAdaptor(dc); 81 dc.connect(remote); 91 dc.bind(local); 113 dc [all...] |
/openjdk7/jdk/src/share/sample/nio/multicast/ |
H A D | Sender.java | 69 DatagramChannel dc = DatagramChannel.open(family).bind(new InetSocketAddress(0)); 71 dc.setOption(StandardSocketOptions.IP_MULTICAST_IF, target.interf()); 75 dc.send(Charset.defaultCharset().encode(args[1]), 77 dc.close();
|
/openjdk7/langtools/test/tools/javac/ |
H A D | T6625520.java | 43 DiagnosticCollector<JavaFileObject> dc = 45 c.put(DiagnosticListener.class, dc); 51 System.err.println(fo + "\n" + dc.getDiagnostics()); 52 if (dc.getDiagnostics().size() > 0)
|
/openjdk7/jdk/test/java/nio/channels/SocketChannel/ |
H A D | UnboundSocketTests.java | 86 DatagramChannel dc = DatagramChannel.open(); 89 check("getLocalPort()", dc.socket().getLocalPort(), 0); 92 dc.socket().getLocalAddress()); 93 check("getLocalSocketAddress()", dc.socket().getLocalSocketAddress(), null); 95 check("getPort()", dc.socket().getPort(), -1); 96 check("getInetAddress()", dc.socket().getInetAddress(), null); 97 check("getRemoteSocketAddress()", dc.socket().getRemoteSocketAddress(), null); 99 dc.close();
|
H A D | VectorParams.java | 80 DatagramChannel dc = DatagramChannel.open(); 81 dc.connect(isa); 82 tryBadRead(dc, bufs, 0, -1); 83 tryBadRead(dc, bufs, -1, 0); 84 tryBadRead(dc, bufs, 0, 1000); 85 tryBadRead(dc, bufs, 1000, 1); 86 tryBadWrite(dc, bufs, 0, -1); 87 tryBadWrite(dc, bufs, -1, 0); 88 tryBadWrite(dc, bufs, 0, 1000); 89 tryBadWrite(dc, buf [all...] |
/openjdk7/jdk/test/java/net/Socket/ |
H A D | TrafficClass.java | 66 DatagramChannel dc = DatagramChannel.open(); 67 testDatagramSocket(dc.socket());
|