Home | History | Annotate | Download | only in ch

Lines Matching defs:dc

46     private final DatagramChannelImpl dc;
52 private DatagramSocketAdaptor(DatagramChannelImpl dc) throws IOException {
56 // before the dc field is initialized.
58 this.dc = dc;
61 public static DatagramSocket create(DatagramChannelImpl dc) {
63 return new DatagramSocketAdaptor(dc);
81 dc.connect(remote);
91 dc.bind(local);
113 dc.disconnect();
120 return dc.localAddress() != null;
124 return dc.remoteAddress() != null;
129 ? Net.asInetSocketAddress(dc.remoteAddress()).getAddress()
135 ? Net.asInetSocketAddress(dc.remoteAddress()).getPort()
140 synchronized (dc.blockingLock()) {
141 if (!dc.isBlocking())
148 if (dc.isConnected()) {
153 dc.remoteAddress();
156 dc.write(bb);
159 dc.send(bb, p.getSocketAddress());
163 dc.send(bb, p.getSocketAddress());
172 // Must hold dc.blockingLock()
176 return dc.receive(bb);
182 dc.configureBlocking(false);
186 if ((sender = dc.receive(bb)) != null)
188 sel = Util.getTemporarySelector(dc);
189 sk = dc.register(sel, SelectionKey.OP_READ);
192 if (!dc.isOpen())
197 if ((sender = dc.receive(bb)) != null)
209 if (dc.isOpen())
210 dc.configureBlocking(true);
217 synchronized (dc.blockingLock()) {
218 if (!dc.isBlocking())
238 SocketAddress local = dc.localAddress();
257 SocketAddress local = dc.getLocalAddress();
278 dc.setOption(name, value);
288 dc.setOption(name, value);
296 return dc.getOption(name).booleanValue();
305 return dc.getOption(name).intValue();
359 dc.close();
366 return !dc.isOpen();
370 return dc;
376 return dc.fd;