Searched refs:connected (Results 1 - 24 of 24) sorted by relevance

/libcore/ojluni/src/main/java/sun/net/
H A DProgressSource.java53 private boolean connected = false; field in class:ProgressSource
81 public boolean connected() { method in class:ProgressSource
82 if (!connected) {
83 connected = true;
166 if (connected() == false)
/libcore/ojluni/src/main/java/java/io/
H A DPipedReader.java41 boolean connected = false; field in class:PipedReader
62 * next character of data will be stored when received from the connected
76 * that it is connected to the piped writer
88 * Creates a <code>PipedReader</code> so that it is connected
108 * connected}. It must be {@linkplain java.io.PipedWriter#connect(
109 * java.io.PipedReader) connected} to a <code>PipedWriter</code>
118 * {@link #connect(java.io.PipedWriter) connected} and uses
121 * java.io.PipedReader) connected} to a <code>PipedWriter</code>
140 * Causes this piped reader to be connected
142 * If this object is already connected t
[all...]
H A DPipedOutputStream.java31 * A piped output stream can be connected to a piped input stream
35 * read from the connected <code>PipedInputStream</code> by some
39 * thread that was reading data bytes from the connected piped input
56 * Creates a piped output stream connected to the specified piped
68 * Creates a piped output stream that is not yet connected to a
69 * piped input stream. It must be connected to a piped input stream,
80 * is already connected to some other piped input stream, an
85 * be connected by either the call:
99 } else if (sink != null || snk.connected) {
100 throw new IOException("Already connected");
[all...]
H A DPipedWriter.java51 * Creates a piped writer connected to the specified piped
63 * Creates a piped writer that is not yet connected to a
64 * piped reader. It must be connected to a piped reader,
75 * is already connected to some other piped reader, an
80 * be connected by either the call:
94 } else if (sink != null || snk.connected) {
95 throw new IOException("Already connected");
103 snk.connected = true;
108 * If a thread was reading data characters from the connected piped input
122 throw new IOException("Pipe not connected");
[all...]
H A DPipedInputStream.java32 * A piped input stream should be connected
46 * thread that was providing data bytes to the connected
56 boolean connected = false; field in class:PipedInputStream
84 * next byte of data will be stored when received from the connected
100 * that it is connected to the piped output
114 * connected to the piped output stream
135 * connected}.
137 * java.io.PipedInputStream) connected} to a
146 * {@linkplain #connect(java.io.PipedOutputStream) connected} and
150 * connected} t
[all...]
/libcore/ojluni/src/main/java/java/net/
H A DHttpURLConnection.java140 * the socket to a pool of connected sockets.
342 * This method must be called before the URLConnection is connected.
350 * @throws IllegalStateException if URLConnection is already connected
360 if (connected) {
361 throw new IllegalStateException ("Already connected");
387 * <P> This method must be called before the URLConnection is connected.
396 * if URLConnection is already connected or if a different
405 if (connected) {
406 throw new IllegalStateException("Already connected");
437 * This method must be called before the URLConnection is connected
[all...]
H A DAbstractPlainSocketImpl.java120 boolean connected = false;
127 connected = true;
129 if (!connected) {
172 boolean connected = false;
183 connected = true;
185 if (!connected) {
364 // created, bound & connected to true.
H A DPlainDatagramSocketImpl.java93 if (!connected)
106 // Now that we're a connected socket, let's extract the port number that the system
122 int port = connected ? 0 : p.getPort();
123 InetAddress address = connected ? null : p.getAddress();
153 connected);
H A DURLConnection.java273 protected boolean connected = false; field in class:URLConnection
334 * has already been opened (indicated by the {@code connected}
338 * created, then they are connected. After being created, and
339 * before being connected, various options can be specified
342 * connected, like getContentLength, will implicitly perform the
349 * @see java.net.URLConnection#connected
853 * @throws IllegalStateException if already connected
858 if (connected)
859 throw new IllegalStateException("Already connected");
884 * @throws IllegalStateException if already connected
[all...]
H A DAbstractPlainDatagramSocketImpl.java52 boolean connected = false; field in class:AbstractPlainDatagramSocketImpl
117 connected = true;
121 * Disconnects a previously connected socket. Does nothing if the socket was
122 * not connected already.
126 connected = false;
H A DSocket.java62 private boolean connected = false; field in class:Socket
596 throw new SocketException("already connected");
624 connected = true;
688 connected = true;
702 connected = true;
706 * Returns the address to which the socket is connected.
708 * If the socket was connected prior to being {@link #close closed},
709 * then this method will continue to return the connected address
712 * @return the remote IP address to which this socket is connected,
713 * or {@code null} if the socket is not connected
[all...]
/libcore/ojluni/src/main/java/sun/net/www/
H A DURLConnection.java44 /** The URL that it is connected to */
74 if(connected)
75 throw new IllegalAccessError("Already connected");
87 if (connected)
88 throw new IllegalStateException("Already connected");
94 if (connected)
95 throw new IllegalStateException("Already connected");
100 if (connected)
101 throw new IllegalStateException("Already connected");
/libcore/luni/src/main/java/libcore/io/
H A DClassPathURLStreamHandler.java141 if (!connected) {
150 connected = true;
/libcore/ojluni/src/main/java/sun/net/www/protocol/file/
H A DFileURLConnection.java79 if (!connected) {
102 connected = true;
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/
H A DJarURLConnection.java120 if (!connected) {
145 connected = true;
/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/
H A DChunkHandler.java41 public abstract void connected(); method in class:ChunkHandler
H A DDdmServer.java118 handler.connected();
/libcore/luni/src/test/java/libcore/java/nio/channels/
H A DOldSocketChannelTest.java138 assertFalse(this.channel1.isConnected());// not connected
226 boolean connected = false;
229 connected = this.channel1.finishConnect();
233 if (connected) {
236 return connected;
/libcore/ojluni/src/main/java/sun/net/www/protocol/ftp/
H A DFtpURLConnection.java219 if (connected) {
265 // connected = true;
290 // connected = true;
328 connected = true;
410 if (!connected) {
525 if (!connected) {
593 * @throws IllegalStateException if already connected
622 * @throws IllegalStateException if already connected
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
H A DSocketChannelTest.java341 assertFalse(this.channel1.isConnected());// not connected
351 assertFalse(this.channel1.isConnected());// not connected
364 assertFalse(this.channel1.isConnected());// not connected
366 boolean connected = channel1.connect(localAddr1);
369 if (!connected) {
376 // status of not connected
394 assertFalse(this.channel1.isConnected());// not connected
400 assertFalse(this.channel1.isConnected());// not connected
410 assertFalse(this.channel1.isConnected());// not connected
412 boolean connected
[all...]
/libcore/ojluni/src/main/native/
H A DDatagramChannelImpl.c152 jint len, jboolean connected)
179 if (connected == JNI_FALSE) {
150 Java_sun_nio_ch_DatagramChannelImpl_receive0(JNIEnv *env, jobject this, jobject fdo, jlong address, jint len, jboolean connected) argument
/libcore/luni/src/test/java/libcore/javax/net/ssl/
H A DSSLEngineTest.java56 assertTrue(connected(a, b));
60 assertFalse(connected(a, b));
63 public boolean connected(SSLEngine a, SSLEngine b) { method in class:SSLEngineTest
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/
H A DURLConnectionTest.java176 connected = true;
185 connected = true;
/libcore/ojluni/src/main/java/sun/nio/ch/
H A DDatagramChannelImpl.java1199 boolean connected)
1198 receive0(FileDescriptor fd, long address, int len, boolean connected) argument

Completed in 376 milliseconds