aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/net/SocketImpl.java
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2002-08-30 18:16:00 +0000
committerTom Tromey <tromey@gcc.gnu.org>2002-08-30 18:16:00 +0000
commit4c322bff290ba4cf86aefa934a8c26acd3350aae (patch)
tree6b8d006ff1e5363ff7071fe6e79480680b240d33 /libjava/java/net/SocketImpl.java
parent55f49e3d50d0a2d4158ecb93fbb8d079f396b1d2 (diff)
downloadgcc-4c322bff290ba4cf86aefa934a8c26acd3350aae.zip
gcc-4c322bff290ba4cf86aefa934a8c26acd3350aae.tar.gz
gcc-4c322bff290ba4cf86aefa934a8c26acd3350aae.tar.bz2
JarURLConnection.java (getCertificates): New method from Classpath.
* java/net/JarURLConnection.java (getCertificates): New method from Classpath. * java/net/URLClassLoader.java (URLClassLoader): Extends SecureClassLoader. (definePackage): New method from Classpath. (getPermissions): Likewise. (newInstance): Likewise. (findClass): Construct CodeSource for new class (from Classpath). * java/net/SocketImpl.java (shutdownInput, shutdownOutput): New methods. * java/net/URL.java (getUserInfo): New method. (set(String,String,int,String,String,String,String,String)): New method. * java/net/PlainSocketImpl.java (_Jv_SO_KEEPALIVE_): Define. (shutdownInput, shutdownOutput): Declare. * java/net/PlainDatagramSocketImpl.java (_Jv_SO_KEEPALIVE_): Define. * java/net/natPlainSocketImpl.cc (setOption): Handle keepalive. (getOption): Likewise. (shutdownInput): New method. (shutdownOutput): Likewise. * java/net/natPlainDatagramSocketImpl.cc (setOption): Handle keepalive. (getOption): Likewise. * java/net/SocketOptions.java (SO_KEEPALIVE): New constant. * java/net/Socket.java (setKeepAlive): New method. (getKeepAlive): Likewise. (shutdownInput, shutdownOutput): New methods. From-SVN: r56685
Diffstat (limited to 'libjava/java/net/SocketImpl.java')
-rw-r--r--libjava/java/net/SocketImpl.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/libjava/java/net/SocketImpl.java b/libjava/java/net/SocketImpl.java
index fb5a60c..7dcf87d 100644
--- a/libjava/java/net/SocketImpl.java
+++ b/libjava/java/net/SocketImpl.java
@@ -264,4 +264,20 @@ public abstract class SocketImpl implements SocketOptions
* @XXX This redeclaration from SocketOptions is a workaround to a gcj bug.
*/
public abstract Object getOption(int option_id) throws SocketException;
+
+ /**
+ * Shut down the input side of this socket. Subsequent reads will
+ * return end-of-file.
+ *
+ * @exception IOException if an error occurs
+ */
+ public abstract void shutdownInput () throws IOException;
+
+ /**
+ * Shut down the output side of this socket. Subsequent writes will
+ * fail with an IOException.
+ *
+ * @exception IOException if an error occurs
+ */
+ public abstract void shutdownOutput () throws IOException;
}