/libcore/luni/src/main/java/java/nio/ |
H A D | SelectionKeyImpl.java | 107 boolean isConnected() { method in class:SelectionKeyImpl 108 return !(channel instanceof SocketChannel) || ((SocketChannel) channel).isConnected();
|
H A D | DatagramChannelImpl.java | 108 * @see java.nio.channels.DatagramChannel#isConnected() 111 synchronized public boolean isConnected() { method in class:DatagramChannelImpl 150 if (!isConnected() || !isOpen()) { 209 received = IoBridge.recvfrom(false, fd, receivePacket.getData(), receivePacket.getOffset(), receivePacket.getLength(), 0, receivePacket, isConnected()); 232 received = IoBridge.recvfrom(false, fd, target, 0, receivePacket, isConnected()); 255 if (isConnected() && !connectAddress.equals(isa)) { 339 readCount = IoBridge.recvfrom(false, fd, dst, 0, null, isConnected()); 441 if (!isConnected()) { 498 * @see java.net.DatagramSocket#isConnected() 501 public boolean isConnected() { method in class:DatagramChannelImpl.DatagramSocketAdapter [all...] |
H A D | SocketChannelImpl.java | 137 synchronized public boolean isConnected() { method in class:SocketChannelImpl 246 finished = IoBridge.isConnected(fd, inetAddress, port, 0, 0); // Return immediately. 398 if (!isConnected()) { 500 public boolean isConnected() { method in class:SocketChannelImpl.SocketAdapter 501 return channel.isConnected(); 518 if (isConnected()) { 523 if (super.isConnected()) { 531 if (channel.isConnected()) { 576 if (!channel.isConnected()) {
|
/libcore/luni/src/main/java/java/io/ |
H A D | PipedInputStream.java | 75 boolean isConnected; field in class:PipedInputStream 181 if (isConnected) { 187 isConnected = true; 210 if (!isConnected) { 288 if (!isConnected) {
|
H A D | PipedReader.java | 75 boolean isConnected; field in class:PipedReader 165 if (isConnected) { 174 isConnected = true; 232 if (!isConnected) { 320 if (!isConnected) {
|
/libcore/luni/src/main/java/java/nio/channels/ |
H A D | DatagramChannel.java | 97 public abstract boolean isConnected(); method in class:DatagramChannel
|
H A D | SocketChannel.java | 38 * blocked or not; {@code isConnected()} indicates if the socket is finally 142 public abstract boolean isConnected(); method in class:SocketChannel
|
/libcore/luni/src/main/java/java/net/ |
H A D | DatagramSocket.java | 47 private boolean isConnected = false; field in class:DatagramSocket 119 if (isClosed() || !isConnected()) { 125 isConnected = false; 491 this.isConnected = true; 527 public boolean isConnected() { method in class:DatagramSocket 528 return isConnected; 536 if (!isConnected()) {
|
H A D | Socket.java | 38 private boolean isConnected = false; field in class:Socket 324 if (!isConnected()) { 393 if (!isConnected()) { 567 isConnected = true; 588 if (!isConnected()) { 644 if (!isConnected()) { 692 if (!isConnected()) { 713 public boolean isConnected() { method in class:Socket 714 return isConnected; 811 if (isConnected()) { [all...] |
/libcore/luni/src/main/java/libcore/io/ |
H A D | IoBridge.java | 161 } while (!IoBridge.isConnected(fd, inetAddress, port, timeoutMs, remainingTimeoutMs)); 194 public static boolean isConnected(FileDescriptor fd, InetAddress inetAddress, int port, int timeoutMs, int remainingTimeoutMs) throws IOException { method in class:IoBridge 208 throw new ErrnoException("isConnected", connectError); // The connect(2) failed. 509 public static int recvfrom(boolean isRead, FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, DatagramPacket packet, boolean isConnected) throws IOException { argument 512 InetSocketAddress srcAddress = (packet != null && !isConnected) ? new InetSocketAddress() : null; 514 result = postRecvfrom(isRead, packet, isConnected, srcAddress, result); 516 result = maybeThrowAfterRecvfrom(isRead, isConnected, errnoException); 521 public static int recvfrom(boolean isRead, FileDescriptor fd, ByteBuffer buffer, int flags, DatagramPacket packet, boolean isConnected) throws IOException { argument 524 InetSocketAddress srcAddress = (packet != null && !isConnected) ? new InetSocketAddress() : null; 526 result = postRecvfrom(isRead, packet, isConnected, srcAddres 533 postRecvfrom(boolean isRead, DatagramPacket packet, boolean isConnected, InetSocketAddress srcAddress, int byteCount) argument 547 maybeThrowAfterRecvfrom(boolean isRead, boolean isConnected, ErrnoException errnoException) argument [all...] |
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/ |
H A D | OpenSSLSocketImplWrapper.java | 36 if (!socket.isConnected()) { 170 public boolean isConnected() { method in class:OpenSSLSocketImplWrapper 171 return socket.isConnected();
|
H A D | SSLSocketWrapper.java | 38 if (!socket.isConnected()) { 190 public boolean isConnected() { method in class:SSLSocketWrapper 191 return socket.isConnected();
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
H A D | OldSocketChannelTest.java | 138 assertFalse(this.channel1.isConnected());// not connected 141 assertFalse(this.channel1.isConnected()); 144 assertTrue(this.channel1.isConnected()); 146 assertFalse(this.channel1.isConnected()); 182 assertTrue(this.channel1.isConnected()); 219 assertTrue(this.channel1.isConnected()); 362 public boolean isConnected() { method in class:OldSocketChannelTest.MockSocketChannel
|