Searched defs:isConnected (Results 1 - 13 of 13) sorted by relevance

/libcore/luni/src/main/java/java/nio/
H A DSelectionKeyImpl.java107 boolean isConnected() { method in class:SelectionKeyImpl
108 return !(channel instanceof SocketChannel) || ((SocketChannel) channel).isConnected();
H A DDatagramChannelImpl.java108 * @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 DSocketChannelImpl.java137 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 DPipedInputStream.java75 boolean isConnected; field in class:PipedInputStream
181 if (isConnected) {
187 isConnected = true;
210 if (!isConnected) {
288 if (!isConnected) {
H A DPipedReader.java75 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 DDatagramChannel.java97 public abstract boolean isConnected(); method in class:DatagramChannel
H A DSocketChannel.java38 * 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 DDatagramSocket.java47 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 DSocket.java38 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 DIoBridge.java161 } 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 DOpenSSLSocketImplWrapper.java36 if (!socket.isConnected()) {
170 public boolean isConnected() { method in class:OpenSSLSocketImplWrapper
171 return socket.isConnected();
H A DSSLSocketWrapper.java38 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 DOldSocketChannelTest.java138 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

Completed in 1854 milliseconds